fix generated equals wrongly highlighted by dfa inspection

This commit is contained in:
peter
2012-04-18 19:28:41 +02:00
parent 65f7a6e5dc
commit 817a3ad1d9
3 changed files with 23 additions and 2 deletions
@@ -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;
}
}