mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 18:50:54 +07:00
generate equals/hashCode: sort primitive fields up and leave natural ordering (IDEA-21339)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user