Skip to content

Commit a3001e0

Browse files
hansonrhansonr
authored andcommitted
java.time.Instant -- no changes for SwingJS
1 parent d9e8c96 commit a3001e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sources/net.sf.j2s.java.core/src/java/time/Instant.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,8 +1307,8 @@ public boolean equals(Object otherInstant) {
13071307
* @return a suitable hash code
13081308
*/
13091309
@Override
1310-
public int hashCode() { // SwingJS 16 not 32 here
1311-
return ((int) (seconds ^ (seconds >>> 16))) + 51 * nanos;
1310+
public int hashCode() {
1311+
return ((int) (seconds ^ (seconds >>> 32))) + 51 * nanos;
13121312
}
13131313

13141314
//-----------------------------------------------------------------------

0 commit comments

Comments
 (0)