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 a9e5ae5cbe
commit 79b06a8212

View file

@ -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) {