Use more accurate name
This commit is contained in:
parent
a9e5ae5cbe
commit
79b06a8212
1 changed files with 4 additions and 3 deletions
|
|
@ -1161,14 +1161,15 @@ public class GanttDiagramGraph<V, D extends IDependency<V>> implements
|
|||
}
|
||||
|
||||
private boolean haveToDoCalculation() {
|
||||
return (recalculationsCouldAffectThis.isEmpty() || parentsHaveBeenModified());
|
||||
return recalculationsCouldAffectThis.isEmpty()
|
||||
|| predecessorsHaveBeenModified();
|
||||
}
|
||||
|
||||
private boolean parentsHaveBeenModified() {
|
||||
private boolean predecessorsHaveBeenModified() {
|
||||
for (Recalculation each : recalculationsCouldAffectThis) {
|
||||
if (!each.recalculationCalled) {
|
||||
throw new RuntimeException(
|
||||
"the parent must be called first");
|
||||
"the predecessor must be called first");
|
||||
}
|
||||
if (each.dataPointModified
|
||||
|| each.couldHaveBeenModifiedBeforehand) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue