perf[set]: 使用Objects的equals方法

This commit is contained in:
godotg committed 2022-09-24 19:00:57 +08:00
1 parent 0efc5438a0
commit a0e00b4da8
4 files changed
+4 -4

No files matched your search

@@ -87,6 +87,6 @@ public class HashByteSet extends AbstractSet<Byte> {
@Override
public int hashCode() {
return map.hashCode();
return Objects.hashCode(map);
}
}
@@ -87,6 +87,6 @@ public class HashIntSet extends AbstractSet<Integer> {
@Override
public int hashCode() {
return map.hashCode();
return Objects.hashCode(map);
}
}
@@ -87,6 +87,6 @@ public class HashLongSet extends AbstractSet<Long> {
@Override
public int hashCode() {
return map.hashCode();
return Objects.hashCode(map);
}
}
@@ -87,6 +87,6 @@ public class HashShortSet extends AbstractSet<Short> {
@Override
public int hashCode() {
return map.hashCode();
return Objects.hashCode(map);
}
}