ben-manes / caffeine

equals checks for incompatible operand JAVA-W0095
Anti-pattern
Major
3 occurrences in this check
 60  @Override public boolean equals(Object o) {
 61    if (o == this) {
 62      return true;
 63    } else if (!(o instanceof Map.Entry)) { 64      return false;
 65    }
 66    var entry = (Map.Entry<?, ?>) o;
 970    public boolean equals(Object o) {
 971      if (o == this) {
 972        return true;
 973      } else if (!(o instanceof Map)) { 974        return false;
 975      }
 976
2989  public boolean equals(Object o) {
2990    if (o == this) {
2991      return true;
2992    } else if (!(o instanceof Map)) {2993      return false;
2994    }
2995