ItEr34S08ValidacionEProbasFuncionaisItEr33S08: Renaming method to avoid confusion
This commit is contained in:
parent
41a49e5170
commit
fc24ce7cc6
2 changed files with 3 additions and 3 deletions
|
|
@ -498,14 +498,14 @@ public abstract class OrderElement extends BaseEntity {
|
|||
return list;
|
||||
}
|
||||
|
||||
public void updateStartConstraintIfNeeded(Task task) {
|
||||
public void applyStartConstraintIfNeededTo(Task task) {
|
||||
if (getInitDate() != null) {
|
||||
applyStartConstraintTo(task);
|
||||
return;
|
||||
}
|
||||
OrderLineGroup parent = getParent();
|
||||
if (parent != null) {
|
||||
parent.updateStartConstraintIfNeeded(task);
|
||||
parent.applyStartConstraintIfNeededTo(task);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -367,7 +367,7 @@ public class OrderModel implements IOrderModel {
|
|||
result.setDeadline(new LocalDate(order.getDeadline()));
|
||||
}
|
||||
if (result instanceof Task) {
|
||||
order.updateStartConstraintIfNeeded(((Task) result));
|
||||
order.applyStartConstraintIfNeededTo((Task) result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue