Commit 46362100 authored by Richard Bruskiewich's avatar Richard Bruskiewich Committed by Matija Obreza
Browse files

Changed HashMap to TreeMap in parseCodeMap to ensure option ordering.

parent 19655b04
......@@ -21,6 +21,7 @@ import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
......@@ -86,7 +87,7 @@ public class TraitCode {
}
public static Map<String, String> parseCodeMap(final String options) {
final Map<String, String> map = new HashMap<String, String>();
final Map<String, String> map = new TreeMap<String, String>();
for (final TraitCode code : parseOptions(options)) {
map.put(code.getCode(), code.getValue());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment