Uses of Interface
com.google.errorprone.bugpatterns.BugChecker.MethodTreeMatcher
Packages that use 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
Classes in com.google.errorprone.bugpatterns that implement BugChecker.MethodTreeMatcherModifier and TypeClassDescriptionfinal classChecks annotation positioning, and orphaned Javadocs.final classSee summary for details.classABugChecker; see the associatedBugPatternannotation for details.classABugChecker; see the associatedBugPatternannotation for details.final classChecks, if two constructors in a class both acceptFoo fooand one calls the other, that the caller passesfooas a parameter.final classFlags checked exceptions which are claimed to be thrown, but are not.final classChecks for the same variable being checked against null twice in a method.classclassclassA Bugpattern; see the accompanying Markdown documentation.classMatches the behaviour of the javac dep-ann Xlint warning.classABugChecker; see the associatedBugPatternannotation for details.classIf a method always throws an exception, consider annotating it with@DoNotCallto prevent calls at compile-time instead failing at runtime.classABugChecker; see the associatedBugPatternannotation for details.final classABugChecker; see the associatedBugPatternannotation for details.classfinal classChecks forequalsimplementations making unsafe casts.final classChecks forequalsimplementations comparing non-corresponding fields.classABugChecker; see the associatedBugPatternannotation for details.classABugChecker; see the associatedBugPatternannotation for details.classVerifies that methods markedForOverrideare only called from the defining class.classfinal classFlags a few ways in which member names may violate the style guide.final classSee BugPattern annotation.classABugChecker; see the associatedBugPatternannotation for details.final classA BugPattern; see the summary.final classChecks for cases where anInterruptedExceptionis caught as part of a catch block catching a supertype, and not specially handled.class@BeforeClassor@AfterClassshould be applied to static methods.final classDeletes empty JUnit4@Before,@After,@BeforeClass, and@AfterClassmethods.classChecks for the existence of a JUnit3 style setUp() method in a JUnit4 test class or methods annotated with a non-JUnit4 @Before annotation.classChecks for the existence of a JUnit3 style tearDown() method in a JUnit4 test class or methods annotated with a non-JUnit4 @After annotation.classChecks if the methods specified injunitparams.Parametersannotation to provide parameters exists.classclassABugChecker; see the associatedBugPatternannotation for details.classABugChecker; see the associatedBugPatternannotation for details.classfinal classMatches test helpers which require a terminating method to be called.classABugChecker; see the associatedBugPatternannotation for details.classChecks if a constructor or method annotated withMustBeClosedis called within the resource variable initializer of a try-with-resources statement.final classWarns on classes or methods being named similarly to contextual keywords, or invoking such methods.classChecks methods annotated with@NoAllocationto ensure they really do not allocate.final classFlags instances of non-API types from being accepted or returned in APIs.classEnforce that @CompileTimeConstant parameters are final or effectively final.classBug checker for equals methods that don't actually override equals.classABugChecker; see the associatedBugPatternannotation for details.final classA bugpattern; see the summary.final classclassABugChecker; see the associatedBugPatternannotation for details.classMatches the behaviour of javac's overrides Xlint warning.final classWarns against overriding toString() in a Throwable class and suggests getMessage()classABugChecker; see the associatedBugPatternannotation for details.classChecks if public APIs named "stream" returns a type whose name ends with Stream.final classRemoves overrides which purely pass through to the method in the super class.classABugChecker; see the associatedBugPatternannotation for details.final classABugChecker; see the associatedBugPatternannotation for details.final classABugChecker; see the associatedBugPatternannotation for details.final classChecks for static fields being assigned within constructors.final classChecks for static fields being assigned withThrowable.classABugChecker; see the associatedBugPatternannotation for details.classABugChecker; see the associatedBugPatternannotation for details.classSuggests to remove the unchecked throws clause.classABugChecker; see the associatedBugPatternannotation for details.classToString should not return null.classWarns when a type parameter shadows another type name in scope.classclassfinal classSuggests restricting the visibility of methods which should only be called by a framework.classABugChecker; see the associatedBugPatternannotation for details.final classA BugPattern; see the summary.classABugChecker; see the associatedBugPatternannotation for details.class -
Uses of BugChecker.MethodTreeMatcher in com.google.errorprone.bugpatterns.android
Classes in com.google.errorprone.bugpatterns.android that implement BugChecker.MethodTreeMatcher -
Uses of BugChecker.MethodTreeMatcher in com.google.errorprone.bugpatterns.checkreturnvalue
Classes in com.google.errorprone.bugpatterns.checkreturnvalue that implement BugChecker.MethodTreeMatcherModifier and TypeClassDescriptionclassDiscourages builder instance methods that do not return 'this'.final classChecker that recommends annotating a method with@CanIgnoreReturnValueif 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
Classes in com.google.errorprone.bugpatterns.flogger that implement BugChecker.MethodTreeMatcherModifier and TypeClassDescriptionfinal classBugpattern to prevent splitting flogger log invocations into multiple statements. -
Uses of BugChecker.MethodTreeMatcher in com.google.errorprone.bugpatterns.formatstring
Classes in com.google.errorprone.bugpatterns.formatstring that implement BugChecker.MethodTreeMatcherModifier and TypeClassDescriptionfinal classBugCheckerto assert validity of methods calls withFormatStringannotations. -
Uses of BugChecker.MethodTreeMatcher in com.google.errorprone.bugpatterns.inject
Classes in com.google.errorprone.bugpatterns.inject that implement BugChecker.MethodTreeMatcherModifier and TypeClassDescriptionclassclassA checker for injected constructors with @Inject(optional=true) or binding annotations.classclassclassBug 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
Classes in com.google.errorprone.bugpatterns.inject.dagger that implement BugChecker.MethodTreeMatcherModifier and TypeClassDescriptionfinal classfinal classclass -
Uses of BugChecker.MethodTreeMatcher in com.google.errorprone.bugpatterns.inject.guice
Classes in com.google.errorprone.bugpatterns.inject.guice that implement BugChecker.MethodTreeMatcherModifier and TypeClassDescriptionclassclassclassThis 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.InjectclassThis 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
Classes in com.google.errorprone.bugpatterns.inlineme that implement BugChecker.MethodTreeMatcher -
Uses of BugChecker.MethodTreeMatcher in com.google.errorprone.bugpatterns.javadoc
Classes in com.google.errorprone.bugpatterns.javadoc that implement BugChecker.MethodTreeMatcherModifier and TypeClassDescriptionfinal classMatches block tags (@param, @return, @throws, @deprecated) with an empty description.final classFinds unescaped entities in Javadocs.final classMatches invalid usage of @inheritDoc.final classMatches invalid Javadoc tags, and tries to suggest fixes.final classMatches invalid Javadoc tags, and tries to suggest fixes.final classFinds some common errors in @link tags.final classMatches incorrect Javadoc @param tags.final classA bug pattern; see the summary.final classMatches errors in Javadoc @throws tags.final classMatches misuse of link tags within throws tags.final classFinds malformed inline tags where @{tag is used instead of {@tag.final classMatches Javadocs which are missing a required summary line.final classFinds common Javadoc errors, and tries to suggest useful fixes.final classFinds unescaped entities in Javadocs.final classFlags tags which haven't been recognised by the Javadoc parser.final classDiscourages using URLs in @see tags. -
Uses of BugChecker.MethodTreeMatcher in com.google.errorprone.bugpatterns.nullness
Classes in com.google.errorprone.bugpatterns.nullness that implement BugChecker.MethodTreeMatcherModifier and TypeClassDescriptionclassBugCheckeradds a null check toequals()method implementations which don't satisfy the null contract ofObject.equals(Object)i.e.classABugChecker; see the associatedBugPatternannotation for details.classABugChecker; see the associatedBugPatternannotation for details.classclassABugChecker; see the associatedBugPatternannotation for details.classABugChecker; see the associatedBugPatternannotation for details. -
Uses of BugChecker.MethodTreeMatcher in com.google.errorprone.bugpatterns.threadsafety
Classes in com.google.errorprone.bugpatterns.threadsafety that implement BugChecker.MethodTreeMatcherModifier and TypeClassDescriptionclassABugChecker; see the associatedBugPatternannotation for details.classABugChecker; see the associatedBugPatternannotation for details.