ItEr33S08ValidacionEProbasFuncionaisItEr32S09: Using static valueOf instead of inefficient constructor

This commit is contained in:
Óscar González Fernández 2009-11-03 17:53:27 +01:00
parent 14ccb170eb
commit 1e1d462412
3 changed files with 3 additions and 3 deletions

View file

@ -109,7 +109,7 @@ public class TaskMilestone extends TaskElement implements IValidable {
@Override
public Integer defaultWorkHours() {
return new Integer(0);
return Integer.valueOf(0);
}
@Override

View file

@ -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);
}
}

View file

@ -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(