Example
public
class
ClassA {
List
l;
String
s;
public void
methodA() {
boolean
b = l.equals(s);
// ...
}
}
Solution
l(List) and s(String) do not have similar classes/interfaces. Reconsider the use of te equals() method.