8172720: Collections.SingletonList::hashCode not spec-compliant

Reviewed-by: chegar
This commit is contained in:
Claes Redestad 2017-01-12 17:07:49 +01:00
parent a004b7fb9e
commit d7ca564a58

View File

@ -4859,7 +4859,7 @@ public class Collections {
}
@Override
public int hashCode() {
return Objects.hashCode(element);
return 31 + Objects.hashCode(element);
}
}