Use factory method instead of constructor

FEA: ItEr74S04BugFixing
This commit is contained in:
Diego Pino Garcia 2011-04-22 19:58:29 +02:00
parent ff327d8109
commit 9185277138

View file

@ -210,9 +210,9 @@ public class StretchesFunctionModel implements IStretchesFunctionModel {
@Override
public void addStretch() {
if (stretchesFunction != null) {
Stretch stretch = new Stretch();
stretch.setDate(new LocalDate(task.getStartDate()));
stretchesFunction.addStretch(stretch);
stretchesFunction.addStretch(Stretch.create(
task.getStartAsLocalDate(), BigDecimal.ZERO,
BigDecimal.ZERO));
}
}