public class EqualsComparison {
	void badEqualsComparision() {
		String s = "Hi there";
		Boolean b = Boolean.TRUE;

		System.out.println("equals() returned " + s.equals(b));
	}

	boolean literalStringEqualsDoNotReport(String s) {
		return "Uh huh".equals(s);
	}
}

// vim:ts=3

@@ -25,16 +25,63 @@
 rison %7B%0A
+%09public interface A %7B%7D%0A%09public interface B %7B%7D%0A%0A
 %09void ba
@@ -302,16 +302,138 @@
 s(s);%0A%09%7D
+%0A%0A%09boolean unrelatedInterfaceComparison(A a, B b) %7B%0A%09%09// This should be a medium priority warning%0A%09%09return a.equals(b);%0A%09%7D
 %0A%7D%0A%0A// v

Add test for comparing unrelated interfaces