Uses of Package
com.google.errorprone.bugpatterns
Package
Description
Checks added to the java compiler which detect common bug patterns.
-
ClassDescriptionCheck for usage of
Set<T>
orMap<T, E>
.Helper for enforcing Annotations that disallow mocking.A policy for determining what classes should not be mocked.An explanation of what type should not be mocked, and the reason why.An extension ofMatcher
to return, not just a boolean `matches`, but also extract some type information about the Tree of interest.An abstract check for resources that must be closed; used byStreamResourceLeak
andMustBeClosedChecker
.Error Prone's fix application logic doesn't like it when a fix suggests multiple identical insertions at the same position.Finds calls to regex-accepting methods with literal strings.Abstract implementation of a BugPattern that detects the use of reference equality to compare classes with value semantics.An abstract base class to match API usages in which the return value is not used.An abstract matcher for implicit and explicit calls toObject.toString()
, for use on types that do not have a human-readabletoString()
implementation.Helper for refactoring from if-else chains to switches.Stores the result of a can-be-static query.Base class for checks which find common errors in date format patterns.Information about a static import.Helper for strongly typing fields.Builder forStronglyType
Logical utility methods to answer the question: Are these two types "compatible" with each other, in the context of an equality check.An enum that classifies a String name into different types, based on the Google Java Style Guide's rules for Type Parameters.Enumerates types which have poorly-defined behaviour for equals. -
ClassDescriptionAn abstract base class to match API usages in which the return value is not used.