ben-manes / caffeine

Class overrides hashCode but not equals JAVA-W0117
Bug risk
Minor
8 days ago9 months old
This class defines hashCode but inherits equals from a superclass
358  }
359
360  private Object objectWithHash(final int hash) {
361    return new Object() {362      @Override public int hashCode() {363        return hash;364      }365    };366  }
367}