Files
openide/java/java-tests/testData/codeInsight/generateEquals/afterPrimitiveFields.java
Bas Leijdekkers 7fbe663b37 Java: don't add instance check when generating equals() (IDEA-357686)
GitOrigin-RevId: 21a0555c2fe6be705fe4d510c8d8d08238af4585
2024-09-25 21:53:25 +00:00

16 lines
321 B
Java

public class Test {
int f;
public int j;
int h;
public boolean equals(Object o) {
if (o == null || getClass() != o.getClass()) return false;
final Test test = (Test) o;
return f == test.f && j == test.j && h == test.h;
}
public int hashCode() {
return 0;
}
}