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