From 9d121af8609ad2c0aaa9efef338412f746f4d2d7 Mon Sep 17 00:00:00 2001 From: snowleo Date: Sat, 15 Oct 2011 01:14:53 +0200 Subject: [PATCH] Test if objects can be read from yaml in the original sort --- .../src/com/earth2me/essentials/settings/General.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/settings/General.java b/Essentials/src/com/earth2me/essentials/settings/General.java index b88242cd6..2f957bffa 100644 --- a/Essentials/src/com/earth2me/essentials/settings/General.java +++ b/Essentials/src/com/earth2me/essentials/settings/General.java @@ -4,6 +4,7 @@ import com.earth2me.essentials.storage.Comment; import com.earth2me.essentials.storage.MapType; import com.earth2me.essentials.storage.StorageObject; import java.util.HashMap; +import java.util.LinkedHashMap; import java.util.Map; import lombok.Data; import lombok.EqualsAndHashCode; @@ -17,6 +18,9 @@ public class General extends StorageObject { super(); locations.put("Test", new Location()); + locations.put("Test5", new Location()); + locations.put("Test4", new Location()); + locations.put("Test3", new Location()); locations.put("Test2", new Location()); } private boolean debug = false; @@ -33,5 +37,5 @@ public class General extends StorageObject }) private String locale; @MapType(Location.class) - private Map locations = new HashMap(); + private LinkedHashMap locations = new LinkedHashMap(); }