Uses of Interface
com.google.errorprone.bugpatterns.BugChecker.NewClassTreeMatcher
Package
Description
Checks added to the java compiler which detect common bug patterns.
-
Uses of BugChecker.NewClassTreeMatcher in com.google.errorprone.bugpatterns
Modifier and TypeClassDescriptionclass
Check for usage ofSet<T>
orMap<T, E>
.class
An abstract base class to match API usages in which the return value is not used.final class
ABugChecker
; see the associatedBugPattern
annotation for details.class
Warns that users should not have an array as a key to a Set or Mapfinal class
ABugChecker
that detects use of the unsafe JNDI API system.class
Matches usages ofnew BigDecimal(double)
which lose precision.class
ABugChecker
; see the associatedBugPattern
annotation for details.class
ABugChecker
; see the associatedBugPattern
annotation for details.class
class
A Bugpattern; see the accompanying Markdown documentation.class
class
ABugChecker
; see the associatedBugPattern
annotation for details.class
ABugChecker
; see the associatedBugPattern
annotation for details.class
ABugChecker
; see the associatedBugPattern
annotation for details.class
ABugChecker
; see the associatedBugPattern
annotation for details.final class
Flag DateFormats which use the same field more than once.final class
ErrorProne checker to generate warning wheneverThreadPoolExecutor
is constructed with differentcorePoolSize
andmaximumPoolSize
using an unboundedworkQueue
final class
See BugPattern annotation.class
ABugChecker
; see the associatedBugPattern
annotation for details.class
ABugChecker
; see the associatedBugPattern
annotation for details.final class
Flags ignored return values from pure getters.class
ABugChecker
; see the associatedBugPattern
annotation for details.class
ABugChecker
; see the associatedBugPattern
annotation for details.class
ABugChecker
; see the associatedBugPattern
annotation for details.class
Base class for checks which find common errors in date format patterns.final class
Ban use of D (day-of-year) in a date format pattern that also contains M (month-of-year).final class
Ban use of YYYY in a SimpleDateFormat pattern, unless it is being used for a week date.class
Checks methods annotated with@NoAllocation
to ensure they really do not allocate.final class
Flags passing literal null toOptional
-accepting APIs.class
ABugChecker
; see the associatedBugPattern
annotation for details.class
ABugChecker
; see the associatedBugPattern
annotation for details.final class
Highlights cases where a proto's build method has its return value ignored.class
Check for non-allowlisted callers to RestrictedApiChecker.class
A checker which produces an error when a return value is accidentally discarded.final class
ABugChecker
; see the associatedBugPattern
for details.class
class
ABugChecker
; see the associatedBugPattern
annotation for details.class
ABugChecker
; see the associatedBugPattern
annotation for details.final class
Bugpattern to discourage throwing base exception classes.class
ABugChecker
; see the associatedBugPattern
annotation for details.class
ABugChecker
; see the associatedBugPattern
annotation for details.final class
Flags unsafe usages of theLocale
constructor and class methods.class
ABugChecker
; see the associatedBugPattern
annotation for details.class
Points out on creation of Set and HashMap of type java.net.URL. -
Uses of BugChecker.NewClassTreeMatcher in com.google.errorprone.bugpatterns.android
-
Uses of BugChecker.NewClassTreeMatcher in com.google.errorprone.bugpatterns.argumentselectiondefects
Modifier and TypeClassDescriptionclass
Checks the lexical distance between method parameter names and the argument names at call sites.final class
Checker to make sure that constructors for AutoValue types are invoked with arguments in the correct order. -
Uses of BugChecker.NewClassTreeMatcher in com.google.errorprone.bugpatterns.formatstring
Modifier and TypeClassDescriptionfinal class
BugChecker
to assert validity of methods calls withFormatString
annotations. -
Uses of BugChecker.NewClassTreeMatcher in com.google.errorprone.bugpatterns.inlineme
Modifier and TypeClassDescriptionfinal class
Checker that performs the inlining at call-sites (where the invoked APIs are annotated as@InlineMe
). -
Uses of BugChecker.NewClassTreeMatcher in com.google.errorprone.bugpatterns.nullness
Modifier and TypeClassDescriptionfinal class
ABugChecker
; see the associatedBugPattern
annotation for details.final class
ABugChecker
; see the associatedBugPattern
annotation for details.class
Check to detect unsafe upcasts ofnull
values to wildcard types. -
Uses of BugChecker.NewClassTreeMatcher in com.google.errorprone.bugpatterns.threadsafety
Modifier and TypeClassDescriptionclass
ABugChecker
; see the associatedBugPattern
annotation for details.class
ABugChecker
; see the associatedBugPattern
annotation for details. -
Uses of BugChecker.NewClassTreeMatcher in com.google.errorprone.bugpatterns.time
Modifier and TypeClassDescriptionfinal class
Warns against suspect looking calls toDate
APIs.final class
Check for calls to bad JodaTime constructors.final class
Check for calls to Joda-Time'sfoo.toFoo()
andnew Foo(foo)
.final class
Checker that detects likely time-unit mismatches by looking at identifier names.