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 {
49
49
50
50
@ Override
51
51
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 );
54
53
}
55
54
56
55
@ Override
Original file line number Diff line number Diff line change @@ -40,8 +40,7 @@ class UnixFileKey {
40
40
41
41
@ Override
42
42
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 );
45
44
}
46
45
47
46
@ Override
Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ public boolean equals(Object ob) {
241
241
242
242
@ Override
243
243
public int hashCode () {
244
- return ( int )( dev ^ ( dev >>> 32 ) ) ^ Arrays .hashCode (entry .dir ());
244
+ return Long . hashCode ( dev ) ^ Arrays .hashCode (entry .dir ());
245
245
}
246
246
247
247
@ Override
You can’t perform that action at this time.
0 commit comments