From 04ae798d487456943e7cb9d3192fda6978ce6567 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20Gonz=C3=A1lez=20Fern=C3=A1ndez?= Date: Wed, 16 Feb 2011 19:27:43 +0100 Subject: [PATCH] Remove warnings from file One method was unused and the other one was accessed when doing validations before saving. FEA: ItEr70S09FragmentationDeletion --- .../planner/entities/GenericResourceAllocation.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/navalplanner-business/src/main/java/org/navalplanner/business/planner/entities/GenericResourceAllocation.java b/navalplanner-business/src/main/java/org/navalplanner/business/planner/entities/GenericResourceAllocation.java index fbaff12b9..babed3a63 100644 --- a/navalplanner-business/src/main/java/org/navalplanner/business/planner/entities/GenericResourceAllocation.java +++ b/navalplanner-business/src/main/java/org/navalplanner/business/planner/entities/GenericResourceAllocation.java @@ -26,7 +26,6 @@ import static org.navalplanner.business.workingday.EffortDuration.min; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; -import java.util.Date; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -94,6 +93,7 @@ public class GenericResourceAllocation extends private Set genericDayAssignmentsContainers = new HashSet(); @Valid + @SuppressWarnings("unused") private Set getGenericDayAssignmentsContainers() { return new HashSet( genericDayAssignmentsContainers); @@ -190,10 +190,6 @@ public class GenericResourceAllocation extends return Collections.unmodifiableSet(criterions); } - private static Date toDate(LocalDate day) { - return day.toDateTimeAtStartOfDay().toDate(); - } - private final class ResourcesSatisfyingCriterionsSelector implements IResourceSelector {