summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-10-15 01:14:53 +0200
committersnowleo <schneeleo@gmail.com>2011-10-15 01:15:01 +0200
commit9d121af8609ad2c0aaa9efef338412f746f4d2d7 (patch)
treec637bf54387fb93137ea6d34dca08e3a78df9bab
parent200ef0c8e23eb4e6603d76e76c511f892fc0c381 (diff)
downloadEssentials-9d121af8609ad2c0aaa9efef338412f746f4d2d7.tar
Essentials-9d121af8609ad2c0aaa9efef338412f746f4d2d7.tar.gz
Essentials-9d121af8609ad2c0aaa9efef338412f746f4d2d7.tar.lz
Essentials-9d121af8609ad2c0aaa9efef338412f746f4d2d7.tar.xz
Essentials-9d121af8609ad2c0aaa9efef338412f746f4d2d7.zip
Test if objects can be read from yaml in the original sort
-rw-r--r--Essentials/src/com/earth2me/essentials/settings/General.java6
1 files changed, 5 insertions, 1 deletions
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<String, Location> locations = new HashMap<String, Location>();
+ private LinkedHashMap<String, Location> locations = new LinkedHashMap<String, Location>();
}