Java: use Objects.hashCode() for single field JDK7+ hashCode() generation (IDEA-177907)

GitOrigin-RevId: 59011b448a85df06ef0b1a5960ab3bf7c77bc32f
This commit is contained in:
Bas Leijdekkers
2023-11-16 18:15:43 +01:00
committed by intellij-monorepo-bot
parent 9bcb2a6194
commit cfc675690d
5 changed files with 35 additions and 6 deletions

View File

@@ -13,6 +13,6 @@ class A {
@Override
public int hashCode() {
return Objects.hash(a);
return Objects.hashCode(a);
}
}