mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-04 21:51:22 +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:
@@ -1,7 +1,7 @@
|
||||
class Arrays {
|
||||
int[] i;
|
||||
|
||||
@Override
|
||||
@java.lang.Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
@@ -13,7 +13,7 @@ class Arrays {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
@java.lang.Override
|
||||
public int hashCode() {
|
||||
return i != null ? i.hashCode() : 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user