File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed
src/java.base/unix/classes/sun/nio Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,7 @@ public static FileKey create(FileDescriptor fd) throws IOException {
4949
5050 @ Override
5151 public int hashCode () {
52- return (int )(st_dev ^ (st_dev >>> 32 )) +
53- (int )(st_ino ^ (st_ino >>> 32 ));
52+ return Long .hashCode (st_dev ) + Long .hashCode (st_ino );
5453 }
5554
5655 @ Override
Original file line number Diff line number Diff line change @@ -40,8 +40,7 @@ class UnixFileKey {
4040
4141 @ Override
4242 public int hashCode () {
43- return (int )(st_dev ^ (st_dev >>> 32 )) +
44- (int )(st_ino ^ (st_ino >>> 32 ));
43+ return Long .hashCode (st_dev ) + Long .hashCode (st_ino );
4544 }
4645
4746 @ Override
Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ public boolean equals(Object ob) {
241241
242242 @ Override
243243 public int hashCode () {
244- return ( int )( dev ^ ( dev >>> 32 ) ) ^ Arrays .hashCode (entry .dir ());
244+ return Long . hashCode ( dev ) ^ Arrays .hashCode (entry .dir ());
245245 }
246246
247247 @ Override
You can’t perform that action at this time.
0 commit comments