
|
Available Workflow Actions
|
|
If you were logged in you would be able to see more operations.
|
|
|
|
Original Estimate:
|
Unknown
|
Remaining Estimate:
|
Unknown
|
Time Spent:
|
Unknown
|
|
| Build: |
3,396
|
| Severity: |
Low
|
|
The idea is to replace all occurrences of this pattern:
new Integer(Integer.parseInt(s))
...with equivalent, but simpler code:
Integer.valueOf(s)
|
|
Description
|
The idea is to replace all occurrences of this pattern:
new Integer(Integer.parseInt(s))
...with equivalent, but simpler code:
Integer.valueOf(s) |
Show » |
|
This should probably also find this for otter number classes, e.g. new Double(Double.parseDouble(s))
A somewhat simpler intention would be to replace
new Integer(s) with Integer.valueOf(s)
new Long(s) with Long.valueOf(s)
new Char(c) with Char.
et cetera for other simple type wrappers and BigDecimal/BigInteger.