generate equals/hashCode: generate deepHashCode for IntelliJ template; do not use deep equals for Objects template as Objects.hash doesn't support it anyway (IDEA-135313)

This commit is contained in:
Anna Kozlova
2015-01-19 19:02:10 +01:00
parent 26f389b07a
commit 88b543d2c6
9 changed files with 24 additions and 50 deletions
@@ -21,8 +21,7 @@ class Test {
public int hashCode() {
int result = myOs != null ? Arrays.hashCode(myOs) : 0;
result = 31 * result + (myIIs != null ? // Probably incorrect - hashCode for high dimension arrays with Arrays.hashCode
Arrays.hashCode(myIIs) : 0);
result = 31 * result + (myIIs != null ? Arrays.deepHashCode(myIIs) : 0);
result = 31 * result + (myIs != null ? Arrays.hashCode(myIs) : 0);
return result;
}