We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
EnumSet
TypeMatcher
HashSet
1 parent 42cc86f commit 3103856Copy full SHA for 3103856
metafix/src/main/java/org/metafacture/metafix/Value.java
@@ -22,6 +22,7 @@
22
import java.util.ArrayList;
23
import java.util.Collection;
24
import java.util.ConcurrentModificationException;
25
+import java.util.EnumSet;
26
import java.util.HashMap;
27
import java.util.HashSet;
28
import java.util.LinkedHashMap;
@@ -304,7 +305,7 @@ enum Type {
304
305
306
public static class TypeMatcher {
307
- private final Set<Type> expected = new HashSet<>();
308
+ private final Set<Type> expected = EnumSet.noneOf(Type.class);
309
private final Value value;
310
311
private TypeMatcher(final Value value) {
0 commit comments