Class NonInheritedEqualsTypes

java.lang.Object
com.google.errorprone.bugpatterns.NonInheritedEqualsTypes

public final class NonInheritedEqualsTypes extends Object
Types that declare equals, but whose subtypes are not meaningfully comparable with each other through it.

TypeCompatibility does not treat a common supertype in this set as a reason to consider two types compatible for equality. Object, Enum and Record are handled separately.

  • Field Details

    • CLASSES_WITH_NON_INHERITED_EQUALS

      public static final com.google.common.collect.ImmutableSet<String> CLASSES_WITH_NON_INHERITED_EQUALS