Class AbstractReferenceEquality

java.lang.Object
com.google.errorprone.bugpatterns.BugChecker
com.google.errorprone.bugpatterns.AbstractReferenceEquality
All Implemented Interfaces:
BugChecker.BinaryTreeMatcher, Suppressible, Serializable
Direct Known Subclasses:
BoxedPrimitiveEquality, NumericEquality, OptionalEquality, ReferenceEquality, StringEquality

public abstract class AbstractReferenceEquality
extends BugChecker
implements BugChecker.BinaryTreeMatcher
Abstract implementation of a BugPattern that detects the use of reference equality to compare classes with value semantics.

See e.g. NumericEquality, OptionalEquality, ProtoStringFieldReferenceEquality, and StringEquality.

Author:
cushon@google.com (Liam Miller-Cushon)
See Also:
Serialized Form
  • Constructor Details

    • AbstractReferenceEquality

      public AbstractReferenceEquality()
  • Method Details