From: David ‘Bombe’ Roden Date: Sat, 28 Jul 2012 09:24:08 +0000 (+0200) Subject: Always keep the properties sorted. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=ab171583f8680b47b35699bacafb6a1f65563571;p=demoscenemusic.git Always keep the properties sorted. --- diff --git a/src/main/java/net/pterodactylus/demoscenemusic/data/Properties.java b/src/main/java/net/pterodactylus/demoscenemusic/data/Properties.java index 3b72223..74bf524 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/data/Properties.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/data/Properties.java @@ -17,10 +17,10 @@ package net.pterodactylus.demoscenemusic.data; -import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.Map.Entry; +import java.util.TreeMap; /** * Container for custom properties that can be attached to all data containers. @@ -31,7 +31,7 @@ import java.util.Map.Entry; public class Properties implements Iterable> { /** The properties. */ - private final Map properties = new HashMap(); + private final Map properties = new TreeMap(); /** The “dirty” flag. */ private boolean dirty = false;