Use factory method instead of constructor
FEA: ItEr74S04BugFixing
This commit is contained in:
parent
ff327d8109
commit
9185277138
1 changed files with 3 additions and 3 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue