ItEr33S08ValidacionEProbasFuncionaisItEr32S09: Using static valueOf instead of inefficient constructor
This commit is contained in:
parent
14ccb170eb
commit
1e1d462412
3 changed files with 3 additions and 3 deletions
|
|
@ -109,7 +109,7 @@ public class TaskMilestone extends TaskElement implements IValidable {
|
|||
|
||||
@Override
|
||||
public Integer defaultWorkHours() {
|
||||
return new Integer(0);
|
||||
return Integer.valueOf(0);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -521,7 +521,7 @@ public class ManageOrderElementAdvancesModel implements
|
|||
}
|
||||
LocalDate date = advanceMeasurement.getDate();
|
||||
if ((value != null) && (date != null)) {
|
||||
xymodel.addValue(title, new Long(date
|
||||
xymodel.addValue(title, Long.valueOf(date
|
||||
.toDateTimeAtStartOfDay().getMillis()), value);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -199,7 +199,7 @@ public class TaskElementAdapter implements ITaskElementAdapter {
|
|||
hours = orderElement.getWorkHours();
|
||||
} else {
|
||||
advancePercentage = new BigDecimal(0);
|
||||
hours = new Integer(0);
|
||||
hours = Integer.valueOf(0);
|
||||
}
|
||||
|
||||
Integer advanceHours = advancePercentage.multiply(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue