diff options
Diffstat (limited to 'src/main/java/com/google/devtools/build')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/syntax/SelectorValue.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/syntax/SelectorValue.java b/src/main/java/com/google/devtools/build/lib/syntax/SelectorValue.java index 2ba77d870b..247bfda071 100644 --- a/src/main/java/com/google/devtools/build/lib/syntax/SelectorValue.java +++ b/src/main/java/com/google/devtools/build/lib/syntax/SelectorValue.java @@ -19,7 +19,6 @@ import com.google.devtools.build.lib.skylarkinterface.SkylarkModule; import com.google.devtools.build.lib.skylarkinterface.SkylarkPrinter; import com.google.devtools.build.lib.skylarkinterface.SkylarkValue; import java.util.Map; -import java.util.TreeMap; /** * The value passed to a select({...}) statement, e.g.: @@ -45,8 +44,7 @@ public final class SelectorValue implements SkylarkValue { private final String noMatchError; public SelectorValue(Map<?, ?> dictionary, String noMatchError) { - // Put the dict through a sorting to avoid depending on insertion order. - this.dictionary = ImmutableMap.copyOf(new TreeMap<>(dictionary)); + this.dictionary = ImmutableMap.copyOf(dictionary); this.type = dictionary.isEmpty() ? Object.class : Iterables.get(dictionary.values(), 0).getClass(); this.noMatchError = noMatchError; |