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

public class EqualsComparison {
	public interface A {}
	public interface B {}

	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);
	}

	boolean unrelatedInterfaceComparison(A a, B b) {
		// This should be a medium priority warning
		return a.equals(b);
	}
}

// vim:ts=3

Add test for comparing unrelated interfaces