mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 06:11:42 +07:00
generate equals/hashCode: ensure one @Override is inserted; extensions could also provide their annotations on equals/hashCode override;
tests: language level is 1.5 though jdk is mockJdk14 without @Override as expected -> fqns in test data
This commit is contained in:
@@ -3,7 +3,7 @@ class Test {
|
||||
class Integer {
|
||||
int i;
|
||||
|
||||
@Override
|
||||
@java.lang.Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
@@ -15,7 +15,7 @@ class Test {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
@java.lang.Override
|
||||
public int hashCode() {
|
||||
return i;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user