mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
fix generated equals wrongly highlighted by dfa inspection
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
public class Bar {
|
||||
int foo;
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (!(o instanceof Bar)) return false;
|
||||
|
||||
Bar bar = (Bar) o;
|
||||
|
||||
if (foo != bar.foo) return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return foo;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user