mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-13 10:16:07 +00:00
perf[set]: 使用Objects的equals方法
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user