diff --git a/src/main/java/xyz/zhouxy/plusone/commons/util/Enumeration.java b/src/main/java/xyz/zhouxy/plusone/commons/util/Enumeration.java index 240356f..0d0a8a2 100644 --- a/src/main/java/xyz/zhouxy/plusone/commons/util/Enumeration.java +++ b/src/main/java/xyz/zhouxy/plusone/commons/util/Enumeration.java @@ -89,7 +89,7 @@ public abstract class Enumeration> implements Comparabl @StaticFactoryMethod(ValueSet.class) public static > ValueSet of(T... values) { Map temp = Arrays.stream(values) - .collect(Collectors.toMap(Enumeration::getId, Function.identity(), (a, b) -> b)); + .collect(Collectors.toMap(Enumeration::getId, Function.identity())); return new ValueSet<>(Collections.unmodifiableMap(temp)); }