generate equals/hashCode: sort primitive fields up and leave natural ordering (IDEA-21339)

This commit is contained in:
Anna Kozlova
2015-01-13 15:00:07 +01:00
parent 22ceca17df
commit cd2d451fba
13 changed files with 47 additions and 49 deletions

View File

@@ -10,8 +10,8 @@ class Test {
final Test test = (Test) o;
if (Double.compare(test.c, c) != 0) return false;
if (i != test.i) return false;
if (Double.compare(test.c, c) != 0) return false;
if (!a.equals(test.a)) return false;
if (b != null ? !b.equals(test.b) : test.b != null) return false;