8172720: Collections.SingletonList::hashCode not spec-compliant
Reviewed-by: chegar
This commit is contained in:
parent
a004b7fb9e
commit
d7ca564a58
@ -4859,7 +4859,7 @@ public class Collections {
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hashCode(element);
|
||||
return 31 + Objects.hashCode(element);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user