Use more accurate name

This commit is contained in:
Óscar González Fernández 2012-03-01 12:10:18 +01:00 committed by Jacobo Aragunde Pérez
parent 93d5667769
commit bc8da4d84a

View file

@ -1177,14 +1177,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) {