void () { doTest("class A {\n" + " int i;\n" + "\n" + " @Override\n" + " public boolean equals(Object o) {\n" + " if (this == o) return true;\n" + " if (o == null || getClass() != o.getClass()) return false; // <-- a warning here is unexpected\n" + " A a = (A)o;\n" + " if (i != a.i) return false;\n" + " return true;\n" + " }\n" + " @Override\n" + " public int hashCode() {\n" + " return i;\n" + " }\n" + " }"); }