diff options
-rw-r--r-- | server/src/com/vaadin/ui/Calendar.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/server/src/com/vaadin/ui/Calendar.java b/server/src/com/vaadin/ui/Calendar.java index 8b8cc7b475..9ccc8ea2d9 100644 --- a/server/src/com/vaadin/ui/Calendar.java +++ b/server/src/com/vaadin/ui/Calendar.java @@ -26,7 +26,7 @@ import java.util.Date; import java.util.EventListener; import java.util.GregorianCalendar; import java.util.HashMap; -import java.util.HashSet; +import java.util.LinkedHashSet; import java.util.LinkedList; import java.util.List; import java.util.Locale; @@ -573,7 +573,7 @@ public class Calendar extends AbstractComponent implements CalendarDateRange range = new CalendarDateRange(s, e, getTimeZone()); Action[] actions = actionHandler.getActions(range, this); if (actions != null) { - Set<Action> actionSet = new HashSet<Action>( + Set<Action> actionSet = new LinkedHashSet<Action>( Arrays.asList(actions)); actionMap.put(range, actionSet); } @@ -587,7 +587,8 @@ public class Calendar extends AbstractComponent implements getTimeZone()); Action[] actions = actionHandler.getActions(range, this); if (actions != null) { - Set<Action> actionSet = new HashSet<Action>(Arrays.asList(actions)); + Set<Action> actionSet = new LinkedHashSet<Action>( + Arrays.asList(actions)); actionMap.put(range, actionSet); } } @@ -1872,4 +1873,4 @@ public class Calendar extends AbstractComponent implements dropHandler.getAcceptCriterion().paint(target); } } -}
\ No newline at end of file +} |