Class TypeCompatibility
java.lang.Object
com.google.errorprone.bugpatterns.TypeCompatibility
Methods to answer the question: are these two types "compatible" with each other, in the context of an equality check?
That is, based on the types alone, is it possible for them to be equal. In general this requires
a common superclass that overrides Object.equals(Object), but there are complexities and
special-cases.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordThe result of acompatibilityOfTypes(Type, Type, VisitorState)call. -
Method Summary
Modifier and TypeMethodDescriptioncompatibilityOfTypes(com.sun.tools.javac.code.Type receiverType, com.sun.tools.javac.code.Type argumentType, VisitorState state)
-
Method Details
-
compatibilityOfTypes
public TypeCompatibility.TypeCompatibilityReport compatibilityOfTypes(com.sun.tools.javac.code.Type receiverType, com.sun.tools.javac.code.Type argumentType, VisitorState state)
-