Package com.google.errorprone.bugpatterns.collectionincompatibletype
package com.google.errorprone.bugpatterns.collectionincompatibletype
-
ClassDescriptionExtracts the necessary information from a
MethodInvocationTreeto check whether calls to a method are using incompatible types and to emit a helpful error message.Encapsulates the result of matching aCollection.contains(Object)-like call, including the source and target types.A BugPattern; see the summary.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(Object).ABugChecker; see the associatedBugPatternannotation for details.ABugChecker; see the associatedBugPatternannotation for details.