Class ReferenceEquality

All Implemented Interfaces:
BugChecker.BinaryTreeMatcher, Suppressible, Serializable

public class ReferenceEquality
extends AbstractReferenceEquality
A BugChecker; see the associated BugPattern annotation for details.
See Also:
Serialized Form
  • Constructor Details

    • ReferenceEquality

      public ReferenceEquality()
  • Method Details

    • matchArgument

      protected boolean matchArgument​(com.sun.source.tree.ExpressionTree tree, VisitorState state)
      Specified by:
      matchArgument in class AbstractReferenceEquality
    • implementsEquals

      public static boolean implementsEquals​(com.sun.tools.javac.code.Type type, VisitorState state)
      Check if the method declares or inherits an implementation of .equals()