diff --git a/jdk/src/java.base/share/classes/java/util/Collections.java b/jdk/src/java.base/share/classes/java/util/Collections.java index 02d656cb574..22b4557ae2f 100644 --- a/jdk/src/java.base/share/classes/java/util/Collections.java +++ b/jdk/src/java.base/share/classes/java/util/Collections.java @@ -4859,7 +4859,7 @@ public class Collections { } @Override public int hashCode() { - return Objects.hashCode(element); + return 31 + Objects.hashCode(element); } }