Package com.google.errorprone.bugpatterns.collectionincompatibletype
-
Class Summary Class Description AbstractCollectionIncompatibleTypeMatcher Extracts the necessary information from aMethodInvocationTree
to check whether calls to a method are using incompatible types and to emit a helpful error message.AbstractCollectionIncompatibleTypeMatcher.MatchResult Encapsulates the result of matching aCollection.contains(java.lang.Object)
-like call, including the source and target types.CollectionIncompatibleType Checker for calling Object-accepting methods with types that don't match the type arguments of their container types.CollectionUndefinedEquality Highlights use ofCollection#contains
(and others) with types that do not have well-defined equals.CompatibleWithMisuse ContainmentMatchers Matchers for methods which express containment, likeCollection.contains(java.lang.Object)
.IncompatibleArgumentType TruthIncompatibleType ABugChecker
; see the associatedBugPattern
annotation for details.