From dbafb8a3ae262539209d7f561992a4f2674a6f85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20Gonz=C3=A1lez=20Fern=C3=A1ndez?= Date: Sun, 20 Dec 2009 16:13:44 +0100 Subject: [PATCH] ItEr39S16CUConfiguracionMaquinasItEr35S09: Some formatting and renaming method to show better intent --- .../web/planner/allocation/ResourceAllocationModel.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/navalplanner-webapp/src/main/java/org/navalplanner/web/planner/allocation/ResourceAllocationModel.java b/navalplanner-webapp/src/main/java/org/navalplanner/web/planner/allocation/ResourceAllocationModel.java index ea6f30aa3..87ca61a12 100644 --- a/navalplanner-webapp/src/main/java/org/navalplanner/web/planner/allocation/ResourceAllocationModel.java +++ b/navalplanner-webapp/src/main/java/org/navalplanner/web/planner/allocation/ResourceAllocationModel.java @@ -142,15 +142,14 @@ public class ResourceAllocationModel implements IResourceAllocationModel { @Transactional(readOnly = true) public void accept() { stepsBeforeDoingAllocation(); - doTheAllocation(allocationRowsHandler - .doAllocation()); + applyAllocationResult(allocationRowsHandler.doAllocation()); } @Override @Transactional(readOnly = true) public void accept(AllocationResult modifiedAllocationResult) { stepsBeforeDoingAllocation(); - doTheAllocation(modifiedAllocationResult); + applyAllocationResult(modifiedAllocationResult); } @Override @@ -193,7 +192,7 @@ public class ResourceAllocationModel implements IResourceAllocationModel { } } - private void doTheAllocation(AllocationResult allocationResult) { + private void applyAllocationResult(AllocationResult allocationResult) { Date previousStartDate = ganttTask.getBeginDate(); long previousLength = ganttTask.getLengthMilliseconds(); allocationResult.applyTo(task);