Uses of Interface
com.google.errorprone.bugpatterns.BugChecker.MethodTreeMatcher
Package
Description
Checks added to the java compiler which detect common bug patterns.
Bug patterns related to dependency
injection and JSR 330.
Bug patterns related to Dagger.
Bug patterns related to Guice.
-
Uses of BugChecker.MethodTreeMatcher in com.google.errorprone.bugpatterns
Modifier and TypeClassDescriptionfinal class
Checks annotation positioning, and orphaned Javadocs.final class
See summary for details.class
ABugChecker
; see the associatedBugPattern
annotation for details.class
ABugChecker
; see the associatedBugPattern
annotation for details.final class
Checks, if two constructors in a class both acceptFoo foo
and one calls the other, that the caller passesfoo
as a parameter.final class
Flags checked exceptions which are claimed to be thrown, but are not.final class
Checks for the same variable being checked against null twice in a method.class
class
class
A Bugpattern; see the accompanying Markdown documentation.class
Matches the behaviour of the javac dep-ann Xlint warning.class
ABugChecker
; see the associatedBugPattern
annotation for details.class
If a method always throws an exception, consider annotating it with@DoNotCall
to prevent calls at compile-time instead failing at runtime.class
ABugChecker
; see the associatedBugPattern
annotation for details.class
final class
Checks forequals
implementations making unsafe casts.final class
Checks forequals
implementations comparing non-corresponding fields.class
ABugChecker
; see the associatedBugPattern
annotation for details.class
ABugChecker
; see the associatedBugPattern
annotation for details.class
Verifies that methods markedForOverride
are only called from the defining class.class
final class
Flags a few ways in which member names may violate the style guide.final class
Bugpattern for incorrect overloads of main.class
ABugChecker
; see the associatedBugPattern
annotation for details.final class
A BugPattern; see the summary.final class
Checks for cases where anInterruptedException
is caught as part of a catch block catching a supertype, and not specially handled.class
@BeforeClass
or@AfterClass
should be applied to static methods.class
Checks for the existence of a JUnit3 style setUp() method in a JUnit4 test class or methods annotated with a non-JUnit4 @Before annotation.class
Checks for the existence of a JUnit3 style tearDown() method in a JUnit4 test class or methods annotated with a non-JUnit4 @After annotation.class
Checks if the methods specified injunitparams.Parameters
annotation to provide parameters exists.class
class
ABugChecker
; see the associatedBugPattern
annotation for details.class
ABugChecker
; see the associatedBugPattern
annotation for details.class
final class
Matches test helpers which require a terminating method to be called.class
ABugChecker
; see the associatedBugPattern
annotation for details.class
Checks if a constructor or method annotated withMustBeClosed
is called within the resource variable initializer of a try-with-resources statement.final class
Warns on classes or methods being named similarly to contextual keywords, or invoking such methods.class
Checks methods annotated with@NoAllocation
to ensure they really do not allocate.final class
Flags instances of non-API types from being accepted or returned in APIs.class
Enforce that @CompileTimeConstant parameters are final or effectively final.class
Bug checker for equals methods that don't actually override equals.class
ABugChecker
; see the associatedBugPattern
annotation for details.final class
A bugpattern; see the summary.final class
class
ABugChecker
; see the associatedBugPattern
annotation for details.class
Matches the behaviour of javac's overrides Xlint warning.class
ABugChecker
; see the associatedBugPattern
annotation for details.class
Checks if public APIs named "stream" returns a type whose name ends with Stream.final class
Removes overrides which purely pass through to the method in the super class.class
ABugChecker
; see the associatedBugPattern
annotation for details.final class
ABugChecker
; see the associatedBugPattern
annotation for details.final class
ABugChecker
; see the associatedBugPattern
annotation for details.final class
Checks for static fields being assigned within constructors.final class
Checks for static fields being assigned withThrowable
.class
ABugChecker
; see the associatedBugPattern
annotation for details.class
ABugChecker
; see the associatedBugPattern
annotation for details.class
Suggests to remove the unchecked throws clause.class
ABugChecker
; see the associatedBugPattern
annotation for details.class
ToString should not return null.class
Warns when a type parameter shadows another type name in scope.class
class
final class
Suggests restricting the visibility of methods which should only be called by a framework.class
ABugChecker
; see the associatedBugPattern
annotation for details.class
ABugChecker
; see the associatedBugPattern
annotation for details.class
-
Uses of BugChecker.MethodTreeMatcher in com.google.errorprone.bugpatterns.android
-
Uses of BugChecker.MethodTreeMatcher in com.google.errorprone.bugpatterns.checkreturnvalue
Modifier and TypeClassDescriptionclass
Discourages builder instance methods that do not return 'this'.final class
Checker that recommends annotating a method with@CanIgnoreReturnValue
if the method returnsthis
, returns an effectively final input param, or if it looks like a builder method (that is likely to returnthis
). -
Uses of BugChecker.MethodTreeMatcher in com.google.errorprone.bugpatterns.flogger
Modifier and TypeClassDescriptionfinal class
Bugpattern to prevent splitting flogger log invocations into multiple statements. -
Uses of BugChecker.MethodTreeMatcher in com.google.errorprone.bugpatterns.formatstring
Modifier and TypeClassDescriptionfinal class
BugChecker
to assert validity of methods calls withFormatString
annotations. -
Uses of BugChecker.MethodTreeMatcher in com.google.errorprone.bugpatterns.inject
Modifier and TypeClassDescriptionclass
class
A checker for injected constructors with @Inject(optional=true) or binding annotations.class
class
class
Bug checker for when a scope annotation is used at injection site, which does not have any effect on the injected values.class
-
Uses of BugChecker.MethodTreeMatcher in com.google.errorprone.bugpatterns.inject.dagger
Modifier and TypeClassDescriptionfinal class
final class
class
-
Uses of BugChecker.MethodTreeMatcher in com.google.errorprone.bugpatterns.inject.guice
Modifier and TypeClassDescriptionclass
class
class
This checker matches methods that 1) are not themselves annotated with @Inject (neither javax.inject.Inject nor com.google.inject.Inject) 2) descend from a method that is annotated with @com.google.inject.Injectclass
This checker matches methods that 1) are not themselves annotated with @Inject 2) descend from a method that is annotated with @javax.inject.Inject 3) do not descent from a method that is annotated with @com.google.inject.Inject -
Uses of BugChecker.MethodTreeMatcher in com.google.errorprone.bugpatterns.inlineme
-
Uses of BugChecker.MethodTreeMatcher in com.google.errorprone.bugpatterns.javadoc
Modifier and TypeClassDescriptionfinal class
Matches block tags (@param, @return, @throws, @deprecated) with an empty description.final class
Finds unescaped entities in Javadocs.final class
Matches invalid usage of @inheritDoc.final class
Matches invalid Javadoc tags, and tries to suggest fixes.final class
Matches invalid Javadoc tags, and tries to suggest fixes.final class
Finds some common errors in @link tags.final class
Matches incorrect Javadoc @param tags.final class
Matches errors in Javadoc @throws tags.final class
Matches misuse of link tags within throws tags.final class
Finds malformed inline tags where @{tag is used instead of {@tag.final class
Matches Javadocs which are missing a required summary line.final class
Finds common Javadoc errors, and tries to suggest useful fixes.final class
Finds unescaped entities in Javadocs.final class
Flags tags which haven't been recognised by the Javadoc parser.final class
Discourages using URLs in @see tags. -
Uses of BugChecker.MethodTreeMatcher in com.google.errorprone.bugpatterns.nullness
Modifier and TypeClassDescriptionclass
BugChecker
adds a null check toequals()
method implementations which don't satisfy the null contract ofObject.equals(java.lang.Object)
i.e.class
ABugChecker
; see the associatedBugPattern
annotation for details.class
ABugChecker
; see the associatedBugPattern
annotation for details.class
class
ABugChecker
; see the associatedBugPattern
annotation for details.class
ABugChecker
; see the associatedBugPattern
annotation for details. -
Uses of BugChecker.MethodTreeMatcher in com.google.errorprone.bugpatterns.threadsafety
Modifier and TypeClassDescriptionclass
ABugChecker
; see the associatedBugPattern
annotation for details.class
ABugChecker
; see the associatedBugPattern
annotation for details.