Example

public class ClassA {
Object o;
Object [] o2;
public void methodA() {

boolean b = o.equals(o2);
// ...
}

}
Solution Reconsider the use of the equals() method invocation. A comparison of an array and non-array will always return false.