generate equals/hashCode: use velocity templates

This commit is contained in:
Anna Kozlova
2015-01-09 21:02:03 +01:00
parent cf1ed92dcb
commit 0ee564a95e
26 changed files with 989 additions and 413 deletions

View File

@@ -21,7 +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
result = 31 * result + (myIIs != null ? // Probably incorrect - hashCode for high dimension arrays with Arrays.hashCode
Arrays.hashCode(myIIs) : 0);
result = 31 * result + (myIs != null ? Arrays.hashCode(myIs) : 0);
return result;