Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- absent() - Static method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Violation
-
An empty explanation.
- ABSTRACT - Enum constant in enum com.google.errorprone.annotations.Modifier
- AbstractAsKeyOfSetOrMap - Class in com.google.errorprone.bugpatterns
-
Check for usage of
Set<T>
orMap<T, E>
. - AbstractAsKeyOfSetOrMap() - Constructor for class com.google.errorprone.bugpatterns.AbstractAsKeyOfSetOrMap
- AbstractBanUnsafeAPIChecker - Class in com.google.errorprone.bugpatterns
-
An abstract class that detects use of the unsafe APIs.
- AbstractBanUnsafeAPIChecker() - Constructor for class com.google.errorprone.bugpatterns.AbstractBanUnsafeAPIChecker
- AbstractCollectionIncompatibleTypeMatcher - Class in com.google.errorprone.bugpatterns.collectionincompatibletype
-
Extracts the necessary information from a
MethodInvocationTree
to check whether calls to a method are using incompatible types and to emit a helpful error message. - AbstractCollectionIncompatibleTypeMatcher() - Constructor for class com.google.errorprone.bugpatterns.collectionincompatibletype.AbstractCollectionIncompatibleTypeMatcher
- AbstractCollectionIncompatibleTypeMatcher.MatchResult - Class in com.google.errorprone.bugpatterns.collectionincompatibletype
-
Encapsulates the result of matching a
Collection.contains(java.lang.Object)
-like call, including the source and target types. - AbstractMockChecker<T> - Class in com.google.errorprone.bugpatterns
-
Helper for enforcing Annotations that disallow mocking.
- AbstractMockChecker(AbstractMockChecker.TypeExtractor<VariableTree>, AbstractMockChecker.TypeExtractor<MethodInvocationTree>, Class<T>, Function<T, String>) - Constructor for class com.google.errorprone.bugpatterns.AbstractMockChecker
- AbstractMockChecker.MockForbidder - Interface in com.google.errorprone.bugpatterns
-
A policy for determining what classes should not be mocked.
- AbstractMockChecker.Reason - Class in com.google.errorprone.bugpatterns
-
An explanation of what type should not be mocked, and the reason why.
- AbstractMockChecker.TypeExtractor<T> - Interface in com.google.errorprone.bugpatterns
-
An extension of
Matcher
to return, not just a boolean `matches`, but also extract some type information about the Tree of interest. - AbstractMustBeClosedChecker - Class in com.google.errorprone.bugpatterns
-
An abstract check for resources that must be closed; used by
StreamResourceLeak
andMustBeClosedChecker
. - AbstractMustBeClosedChecker() - Constructor for class com.google.errorprone.bugpatterns.AbstractMustBeClosedChecker
- AbstractMustBeClosedChecker.Change - Class in com.google.errorprone.bugpatterns
-
Error Prone's fix application logic doesn't like it when a fix suggests multiple identical insertions at the same position.
- AbstractPatternSyntaxChecker - Class in com.google.errorprone.bugpatterns
-
Finds calls to regex-accepting methods with literal strings.
- AbstractPatternSyntaxChecker() - Constructor for class com.google.errorprone.bugpatterns.AbstractPatternSyntaxChecker
- AbstractReferenceEquality - Class in com.google.errorprone.bugpatterns
-
Abstract implementation of a BugPattern that detects the use of reference equality to compare classes with value semantics.
- AbstractReferenceEquality() - Constructor for class com.google.errorprone.bugpatterns.AbstractReferenceEquality
- AbstractReturnValueIgnored - Class in com.google.errorprone.bugpatterns
-
An abstract base class to match API usages in which the return value is not used.
- AbstractReturnValueIgnored() - Constructor for class com.google.errorprone.bugpatterns.AbstractReturnValueIgnored
- AbstractReturnValueIgnored(ConstantExpressions) - Constructor for class com.google.errorprone.bugpatterns.AbstractReturnValueIgnored
- AbstractToString - Class in com.google.errorprone.bugpatterns
-
An abstract matcher for implicit and explicit calls to
Object.toString()
, for use on types that do not have a human-readabletoString()
implementation. - AbstractToString(ErrorProneFlags) - Constructor for class com.google.errorprone.bugpatterns.AbstractToString
- AbstractTypeMatcher<T> - Class in com.google.errorprone.matchers
-
Base class for type matchers.
- AbstractTypeMatcher(Supplier<Type>) - Constructor for class com.google.errorprone.matchers.AbstractTypeMatcher
- AbstractTypeMatcher(String) - Constructor for class com.google.errorprone.matchers.AbstractTypeMatcher
- AbstractUseSwitch - Class in com.google.errorprone.bugpatterns
-
Helper for refactoring from if-else chains to switches.
- AbstractUseSwitch() - Constructor for class com.google.errorprone.bugpatterns.AbstractUseSwitch
- accept(ConstantExpressions.ConstantExpressionVisitor) - Method in class com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions.ConstantExpression
- accept(ConstantExpressions.ConstantExpressionVisitor) - Method in class com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions.PureMethodInvocation
- accept(TreeVisitor<R, D>, D) - Method in class com.google.errorprone.refaster.UAnyOf
- accept(TreeVisitor<R, D>, D) - Method in class com.google.errorprone.refaster.UFreeIdent
- accept(TreeVisitor<R, D>, D) - Method in class com.google.errorprone.refaster.UMethodIdent
- accept(TreeVisitor<R, D>, D) - Method in class com.google.errorprone.refaster.UStaticIdent
- accept(TreeVisitor<R, D>, D) - Method in class com.google.errorprone.refaster.ULiteral
- accept(TreeVisitor<R, D>, D) - Method in class com.google.errorprone.refaster.UMemberSelect
- accept(TreeVisitor<R, D>, D) - Method in class com.google.errorprone.refaster.UMethodInvocation
- accept(TreeVisitor<R, D>, D) - Method in class com.google.errorprone.refaster.UPlaceholderExpression
- accept(TreeVisitor<R, D>, D) - Method in class com.google.errorprone.refaster.UReturn
- accept(TreeVisitor<R, D>, D) - Method in class com.google.errorprone.refaster.UVariableDecl
- acceptedAnnotations(Iterable<String>) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Builder
-
Annotations that do *not* cause a class to be tested, but which are treated as valid annotations to pass the test; for example, if @ThreadSafe is the marker annotation, @Immutable would be included in this list, as an immutable class is by definition thread-safe.
- AccessPath - Class in com.google.errorprone.dataflow
-
A sequence of field names or autovalue accessors, along with a receiver: either a variable or a reference (explicit or implicit) to
this
. - AccessPath() - Constructor for class com.google.errorprone.dataflow.AccessPath
- AccessPathStore<V> - Class in com.google.errorprone.dataflow
-
Immutable map from local variables or heap access paths to their
AbstractValue
- AccessPathStore() - Constructor for class com.google.errorprone.dataflow.AccessPathStore
- AccessPathStore.Builder<V> - Class in com.google.errorprone.dataflow
-
Builder for
AccessPathStore
instances. - AccessPathValues<T> - Interface in com.google.errorprone.dataflow
-
Read-only access to
AccessPathStore
for convenience. - actualTypes(Inliner) - Method in class com.google.errorprone.refaster.Template
-
Returns a list of the actual types to be matched.
- add(Replacement) - Method in class com.google.errorprone.fixes.Replacements
- add(Replacement, Replacements.CoalescePolicy) - Method in class com.google.errorprone.fixes.Replacements
- add(Class<?>, String...) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafetyKnownTypes.MapBuilder
- add(String) - Method in class com.google.errorprone.apply.ImportStatements
-
Add an import to the list of imports.
- add(String, String...) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafetyKnownTypes.MapBuilder
- addAll(ImmutableMap<String, AnnotationInfo>) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafetyKnownTypes.MapBuilder
- addAll(Collection<String>) - Method in class com.google.errorprone.apply.ImportStatements
-
Add all imports in a collection to this list of imports.
- addAllClassDiff(Iterable<? extends ApiDiffProto.ClassDiff>) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
- addAllFixes(List<? extends Fix>) - Method in class com.google.errorprone.matchers.Description.Builder
-
Add each fix in order.
- addAllMember(Iterable<? extends ApiDiffProto.ClassMember>) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
- addBinding(Class<T>, T) - Method in class com.google.errorprone.scanner.ErrorProneInjector
- addClassDiff(int, ApiDiffProto.ClassDiff) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
- addClassDiff(int, ApiDiffProto.ClassDiff.Builder) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
- addClassDiff(ApiDiffProto.ClassDiff) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
- addClassDiff(ApiDiffProto.ClassDiff.Builder) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
- addClassDiffBuilder() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
- addClassDiffBuilder(int) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
- addClasses(Set<Class<?>>) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafetyKnownTypes.MapBuilder
- addFailCall(TryTree, StatementTree, VisitorState) - Static method in class com.google.errorprone.bugpatterns.MissingFail
- addFix(Fix) - Method in class com.google.errorprone.matchers.Description.Builder
-
Adds a suggested fix for this
Description
. - addFix(Optional<? extends Fix>) - Method in class com.google.errorprone.matchers.Description.Builder
-
Deprecated.
- addFixes(Description.Builder, BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractReferenceEquality
- addGroups(Map<K, ? extends Collection<ImportOrganizer.Import>>, Iterable<K>) - Method in class com.google.errorprone.apply.ImportOrganizer.OrganizedImports
-
Add groups of already sorted imports.
- addImport(String) - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
-
Add an import statement as part of this SuggestedFix.
- addImport(String) - Method in class com.google.errorprone.refaster.Inliner
- addImports(Inliner, SuggestedFix.Builder) - Static method in class com.google.errorprone.refaster.Template
- addInput(String) - Method in class com.google.errorprone.BugCheckerRefactoringTestHelper
- addInputLines(String, String...) - Method in class com.google.errorprone.BugCheckerRefactoringTestHelper
- ADDITIVE - Enum constant in enum com.google.errorprone.util.OperatorPrecedence
- addMember(int, ApiDiffProto.ClassMember) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
- addMember(int, ApiDiffProto.ClassMember.Builder) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
- addMember(ApiDiffProto.ClassMember) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
- addMember(ApiDiffProto.ClassMember.Builder) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
- addMemberBuilder() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
- addMemberBuilder(int) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
- addMembers(ClassTree, VisitorState, SuggestedFixes.AdditionPosition, Iterable<String>) - Static method in class com.google.errorprone.fixes.SuggestedFixes
- addMembers(ClassTree, VisitorState, SuggestedFixes.AdditionPosition, String, String...) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Returns a
Fix
that adds members defined byfirstMember
(and optionallyotherMembers
) to the class referenced byclassTree
. - addMembers(ClassTree, VisitorState, String, String...) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Returns a
Fix
that adds members defined byfirstMember
(and optionallyotherMembers
) to the end of the class referenced byclassTree
. - addModifiers(Tree, VisitorState, Modifier...) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Adds modifiers to the given class, method, or field declaration.
- addModifiers(Tree, ModifiersTree, VisitorState, Set<Modifier>) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Adds modifiers to the given declaration and corresponding modifiers tree.
- addModules(String...) - Method in class com.google.errorprone.BugCheckerRefactoringTestHelper
- addModules(String...) - Method in class com.google.errorprone.CompilationTestHelper
- addOption(SuggestedFix) - Method in class com.google.errorprone.fixes.BranchedSuggestedFixes.Builder
- addOutput(String) - Method in class com.google.errorprone.BugCheckerRefactoringTestHelper.ExpectOutput
- addOutputLines(String, String...) - Method in class com.google.errorprone.BugCheckerRefactoringTestHelper.ExpectOutput
- addRepeatedField(Descriptors.FieldDescriptor, Object) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
- addRepeatedField(Descriptors.FieldDescriptor, Object) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
- addRepeatedField(Descriptors.FieldDescriptor, Object) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
- addRepeatedField(Descriptors.FieldDescriptor, Object) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
- addRepeatedField(Descriptors.FieldDescriptor, Object) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
- AddressSelection - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - AddressSelection() - Constructor for class com.google.errorprone.bugpatterns.AddressSelection
- addRule(ResultUseRule<C, S>) - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicyEvaluator.Builder
-
Adds the given
rule
. - addRules(ResultUseRule<C, S>...) - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicyEvaluator.Builder
-
Adds all the given
rules
. - addRules(Iterable<? extends ResultUseRule<C, S>>) - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicyEvaluator.Builder
-
Adds all the given
rules
. - addSourceFile(String) - Method in class com.google.errorprone.CompilationTestHelper
-
Adds a source file to the test compilation, from an existing resource file.
- addSourceLines(String, String...) - Method in class com.google.errorprone.CompilationTestHelper
-
Adds a source file to the test compilation, from the string content of the file.
- addStaticImport(String) - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
-
Add a static import statement as part of this SuggestedFix.
- addStaticImport(String) - Method in class com.google.errorprone.refaster.Inliner
- addStrings(List<String>) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafetyKnownTypes.MapBuilder
- addSuppressWarnings(SuggestedFix.Builder, VisitorState, String) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Modifies
fixBuilder
to either create a new@SuppressWarnings
element on the closest suppressible node, or addwarningToSuppress
to that node if there's already aSuppressWarnings
annotation there. - addSuppressWarnings(SuggestedFix.Builder, VisitorState, String, String) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Modifies
fixBuilder
to either create a new@SuppressWarnings
element on the closest suppressible node, or addwarningToSuppress
to that node if there's already aSuppressWarnings
annotation there. - addSuppressWarnings(SuggestedFix.Builder, VisitorState, String, String, boolean) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Modifies
fixBuilder
to either create a new@SuppressWarnings
element on the closest suppressible node, or addwarningToSuppress
to that node if there's already aSuppressWarnings
annotation there. - addSuppressWarnings(VisitorState, String) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Returns a fix that adds a
@SuppressWarnings(warningToSuppress)
to the closest suppressible element to the node pointed at bystate.getPath()
. - addSuppressWarnings(VisitorState, String, String) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Returns a fix that adds a
@SuppressWarnings(warningToSuppress)
to the closest suppressible element to the node pointed at bystate.getPath()
, optionally suffixing the suppression with a comment suffix (e.g. - addType(Type) - Method in class com.google.errorprone.bugpatterns.StronglyType.Builder
-
Add a type that can be replaced with a stronger type.
- addValuesToAnnotationArgument(AnnotationTree, String, Collection<String>, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Returns a fix that appends
newValues
to theparameterName
argument forannotation
, regardless of whether there is already an argument. - AdjustedPosition - Class in com.google.errorprone.fixes
-
Describes a tree position with adjustments to the start and end indices.
- AdjustedPosition(JCTree, int, int) - Constructor for class com.google.errorprone.fixes.AdjustedPosition
- AFTER - Enum constant in enum com.google.errorprone.util.Commented.Position
- afterComments() - Method in class com.google.errorprone.util.Commented
- AfterTemplate - Annotation Type in com.google.errorprone.refaster.annotation
-
Desired "after" version of a refactoring.
- ALL - Enum constant in enum com.google.errorprone.matchers.ChildMultiMatcher.MatchType
-
Matches if all of the child elements match the matcher.
- allChecks() - Static method in class com.google.errorprone.scanner.BuiltInCheckerSuppliers
-
Returns a
ScannerSupplier
with allBugChecker
s in Error Prone. - allNames() - Method in class com.google.errorprone.BugCheckerInfo
- allNames() - Method in class com.google.errorprone.bugpatterns.BugChecker
- allNames() - Method in interface com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicyAnalyzer
-
Returns all of the name strings that this checker should respect as part of a
@SuppressWarnings
annotation. - allNames() - Method in interface com.google.errorprone.matchers.Suppressible
-
Returns all of the name strings that this checker should respect as part of a
@SuppressWarnings
annotation. - allOf(Matcher<? super T>...) - Static method in class com.google.errorprone.matchers.Matchers
-
Compose several matchers together, such that the composite matches an AST node iff all the given matchers do.
- allOf(TypePredicate...) - Static method in class com.google.errorprone.predicates.TypePredicates
- allOf(Iterable<? extends Matcher<? super T>>) - Static method in class com.google.errorprone.matchers.Matchers
-
Compose several matchers together, such that the composite matches an AST node iff all the given matchers do.
- allOn() - Static method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByFlags
- allowableToStringKind(AbstractToString.ToStringKind) - Method in class com.google.errorprone.bugpatterns.AbstractToString
-
Whether this kind of toString call is allowable for this check.
- allowableToStringKind(AbstractToString.ToStringKind) - Method in class com.google.errorprone.bugpatterns.ArrayToString
- allowBreakingChanges() - Method in class com.google.errorprone.BugCheckerRefactoringTestHelper
-
If set, fixes that produce output that doesn't compile are allowed.
- AllowCodeBetweenLines - Annotation Type in com.google.errorprone.refaster.annotation
-
Annotation on a Refaster rule to allow code between every pair of consecutive top-level statements in @BeforeTemplates that do not refer to variables Refaster knows about and do not break or return, and moves that code to the beginning of the @AfterTemplate.
- allowedOnPath() - Element in annotation type com.google.errorprone.annotations.RestrictedApi
-
Allow the restricted API on paths matching this regular expression.
- allowInExceptionThrowers() - Method in class com.google.errorprone.bugpatterns.AbstractReturnValueIgnored
-
Override this to return false to forbid discarding return values in testers that are testing whether an exception is thrown.
- allowlistAnnotations() - Element in annotation type com.google.errorprone.annotations.RestrictedApi
-
Allow calls to the restricted API in methods or classes with this annotation.
- allowlistWithWarningAnnotations() - Element in annotation type com.google.errorprone.annotations.RestrictedApi
-
Emit warnings, not errors, on calls to the restricted API for callers with this annotation.
- allowsIdentity() - Element in annotation type com.google.errorprone.refaster.annotation.Placeholder
-
Identifies whether the placeholder is allowed to match an expression which simply returns one of the placeholder arguments unchanged.
- AlmostJavadoc - Class in com.google.errorprone.bugpatterns.javadoc
-
Flags comments which appear to be intended to be Javadoc, but are not started with an extra
*
. - AlmostJavadoc() - Constructor for class com.google.errorprone.bugpatterns.javadoc.AlmostJavadoc
- AlreadyChecked - Class in com.google.errorprone.bugpatterns
-
Bugpattern to find conditions which are checked more than once.
- AlsoNegation - Annotation Type in com.google.errorprone.refaster.annotation
-
Indicates that Refaster should, additionally, refactor the negation of this rule and its corresponding before templates.
- altNames - Variable in class com.google.errorprone.BugPatternInstance
- altNames() - Element in annotation type com.google.errorprone.BugPattern
-
Alternate identifiers for this bug, which may also be used in @SuppressWarnings.
- ALWAYS_RETURNS - Enum constant in enum com.google.errorprone.refaster.ControlFlowVisitor.Result
- AlwaysThrows - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - AmbiguousMethodReference - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - AmbiguousMethodReference() - Constructor for class com.google.errorprone.bugpatterns.AmbiguousMethodReference
- analyze(VisitorState, HeldLockAnalyzer.LockEventListener, Predicate<Tree>, GuardedByFlags) - Static method in class com.google.errorprone.bugpatterns.threadsafety.HeldLockAnalyzer
-
Analyzes a method body, tracking the set of held locks and checking accesses to guarded members.
- AND - Enum constant in enum com.google.errorprone.util.OperatorPrecedence
- ANDROID_STATIC_FIRST_ORGANIZER - Static variable in interface com.google.errorprone.apply.ImportOrganizer
-
An
ImportOrganizer
that sorts import statements according to Android Code Style, with static imports first. - ANDROID_STATIC_LAST_ORGANIZER - Static variable in interface com.google.errorprone.apply.ImportOrganizer
-
An
ImportOrganizer
that sorts import statements according to Android Code Style, with static imports last. - AndroidInjectionBeforeSuper - Class in com.google.errorprone.bugpatterns.inject.dagger
- AndroidInjectionBeforeSuper() - Constructor for class com.google.errorprone.bugpatterns.inject.dagger.AndroidInjectionBeforeSuper
- AndroidJdkLibsChecker - Class in com.google.errorprone.bugpatterns.apidiff
-
Checks for uses of classes, fields, or methods that are not compatible with legacy Android devices.
- ANNOTATED_ANNOTATION_MESSAGE - Static variable in class com.google.errorprone.bugpatterns.threadsafety.ImmutableAnnotationChecker
- ANNOTATED_ENUM_MESSAGE - Static variable in class com.google.errorprone.bugpatterns.threadsafety.ImmutableEnumChecker
- AnnotateFormatMethod - Class in com.google.errorprone.bugpatterns
-
Detects occurrences of pairs of parameters being passed straight through to
String.format(java.lang.String, java.lang.Object...)
from a method not annotated withFormatMethod
. - AnnotateFormatMethod() - Constructor for class com.google.errorprone.bugpatterns.AnnotateFormatMethod
- ANNOTATION_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
- AnnotationDoesNotHaveArgument - Class in com.google.errorprone.matchers
-
Matches an annotation that does not have a particular argument, possibly because the default value is being used.
- AnnotationDoesNotHaveArgument(String) - Constructor for class com.google.errorprone.matchers.AnnotationDoesNotHaveArgument
-
Creates a new matcher.
- AnnotationHasArgumentWithValue - Class in com.google.errorprone.matchers
- AnnotationHasArgumentWithValue(String, Matcher<ExpressionTree>) - Constructor for class com.google.errorprone.matchers.AnnotationHasArgumentWithValue
- AnnotationInfo - Class in com.google.errorprone.bugpatterns.threadsafety
-
Specifies information about a type which may be a container specified by generic type arguments, e.g.
- AnnotationInfo() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.AnnotationInfo
- annotationMap(Symbol) - Static method in class com.google.errorprone.refaster.UTemplater
- AnnotationMatcher<T> - Class in com.google.errorprone.matchers
-
Matches if the given annotation matcher matches all of or any of the annotations on the tree node.
- AnnotationMatcher(ChildMultiMatcher.MatchType, Matcher<AnnotationTree>) - Constructor for class com.google.errorprone.matchers.AnnotationMatcher
- AnnotationMatcherUtils - Class in com.google.errorprone.matchers
-
Utilities for matching annotations.
- AnnotationMirrorToString - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - annotationOnVoid(String, String) - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.ErrorMessages
-
Error message for when an annotation used by
Rules.mapAnnotationSimpleName(java.lang.String, com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicy)
is applied to a void-returning method. - AnnotationPosition - Class in com.google.errorprone.bugpatterns
-
Checks annotation positioning, and orphaned Javadocs.
- AnnotationPosition() - Constructor for class com.google.errorprone.bugpatterns.AnnotationPosition
- annotationReplacements() - Method in class com.google.errorprone.bugpatterns.JUnit4SetUpNotRun
- annotationReplacements() - Method in class com.google.errorprone.bugpatterns.JUnit4TearDownNotRun
- annotations() - Method in interface com.google.errorprone.CodeTransformer
-
Returns a map of annotation data logically applied to this code transformer.
- annotations() - Method in class com.google.errorprone.CompositeCodeTransformer
- annotations() - Method in interface com.google.errorprone.dataflow.nullnesspropagation.MethodInfo
- annotations() - Method in class com.google.errorprone.refaster.RefasterRule
- annotations() - Method in class com.google.errorprone.refaster.Template
- annotations() - Method in class com.google.errorprone.scanner.ErrorProneScannerTransformer
- annotations(ChildMultiMatcher.MatchType, Matcher<AnnotationTree>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches if the given annotation matcher matches all of or any of the annotations on this tree node.
- annotationsAmong(Symbol, Set<? extends Name>, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
-
Determines which of a set of annotations are present on a symbol.
- annotationsAreAmbiguous(Collection<? extends AnnotationMirror>) - Static method in class com.google.errorprone.dataflow.nullnesspropagation.NullnessAnnotations
- annotationsRelevantToNullness(List<? extends AnnotationTree>) - Static method in class com.google.errorprone.dataflow.nullnesspropagation.NullnessAnnotations
- AnnotationType - Class in com.google.errorprone.matchers
- AnnotationType(String) - Constructor for class com.google.errorprone.matchers.AnnotationType
- AnnotationValueToString - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - any(Collection<Choice<T>>) - Static method in class com.google.errorprone.refaster.Choice
-
Returns a choice between any of the options from any of the specified choices.
- ANY - Enum constant in enum com.google.errorprone.util.Commented.Position
- anyClass() - Method in interface com.google.errorprone.matchers.method.MethodMatchers.AnyMethodMatcher
-
Deprecated.Match on any class.
- anyClass() - Method in interface com.google.errorprone.matchers.method.MethodMatchers.InstanceMethodMatcher
-
Deprecated.Match on any class.
- anyClass() - Method in interface com.google.errorprone.matchers.method.MethodMatchers.StaticMethodMatcher
-
Deprecated.Match on any class.
- anyFieldInClass(String) - Static method in class com.google.errorprone.matchers.FieldMatchers
- anyMatch(Predicate<Symbol>) - Method in class com.google.errorprone.util.ErrorProneScope
- anyMethod() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches a static or instance method.
- anyMethod() - Static method in class com.google.errorprone.matchers.method.MethodMatchers
- anyOf(Matcher<? super T>...) - Static method in class com.google.errorprone.matchers.Matchers
- anyOf(TypePredicate...) - Static method in class com.google.errorprone.predicates.TypePredicates
- anyOf(Iterable<? extends Matcher<? super T>>) - Static method in class com.google.errorprone.matchers.Matchers
-
Compose several matchers together, such that the composite matches an AST node if any of the given matchers do.
- anyOf(T...) - Static method in class com.google.errorprone.refaster.Refaster
-
Indicates that Refaster should attempt to match a target expression against each of the specified template expressions, in order, and succeed at the first match.
- anything() - Static method in class com.google.errorprone.matchers.Matchers
-
A matcher that matches any AST node.
- anything() - Static method in class com.google.errorprone.predicates.TypePredicates
-
Matches everything (always
true
). - Api - Class in com.google.errorprone.bugpatterns.checkreturnvalue
-
Represents a Java method or constructor.
- Api() - Constructor for class com.google.errorprone.bugpatterns.checkreturnvalue.Api
- API_DIFF - Static variable in class com.google.errorprone.bugpatterns.apidiff.Java7ApiChecker
- ApiDiff - Class in com.google.errorprone.bugpatterns.apidiff
-
The difference between two APIs.
- ApiDiff() - Constructor for class com.google.errorprone.bugpatterns.apidiff.ApiDiff
- ApiDiff.ClassMemberKey - Class in com.google.errorprone.bugpatterns.apidiff
-
A per class unique identifier for a field or method.
- ApiDiffChecker - Class in com.google.errorprone.bugpatterns.apidiff
-
A base Error Prone check implementation to enforce compliance with a given API diff.
- ApiDiffChecker(ApiDiff) - Constructor for class com.google.errorprone.bugpatterns.apidiff.ApiDiffChecker
- ApiDiffChecker(ApiDiff, Class<? extends Annotation>) - Constructor for class com.google.errorprone.bugpatterns.apidiff.ApiDiffChecker
- ApiDiffProto - Class in com.google.errorprone.bugpatterns.apidiff
- ApiDiffProto.ClassDiff - Class in com.google.errorprone.bugpatterns.apidiff
-
Protobuf type
devtools.staticanalysis.errorprone.apidiff.ClassDiff
- ApiDiffProto.ClassDiff.Builder - Class in com.google.errorprone.bugpatterns.apidiff
-
Protobuf type
devtools.staticanalysis.errorprone.apidiff.ClassDiff
- ApiDiffProto.ClassDiff.DiffCase - Enum in com.google.errorprone.bugpatterns.apidiff
- ApiDiffProto.ClassDiffOrBuilder - Interface in com.google.errorprone.bugpatterns.apidiff
- ApiDiffProto.ClassMember - Class in com.google.errorprone.bugpatterns.apidiff
-
Protobuf type
devtools.staticanalysis.errorprone.apidiff.ClassMember
- ApiDiffProto.ClassMember.Builder - Class in com.google.errorprone.bugpatterns.apidiff
-
Protobuf type
devtools.staticanalysis.errorprone.apidiff.ClassMember
- ApiDiffProto.ClassMemberOrBuilder - Interface in com.google.errorprone.bugpatterns.apidiff
- ApiDiffProto.Diff - Class in com.google.errorprone.bugpatterns.apidiff
-
Protobuf type
devtools.staticanalysis.errorprone.apidiff.Diff
- ApiDiffProto.Diff.Builder - Class in com.google.errorprone.bugpatterns.apidiff
-
Protobuf type
devtools.staticanalysis.errorprone.apidiff.Diff
- ApiDiffProto.DiffOrBuilder - Interface in com.google.errorprone.bugpatterns.apidiff
- ApiDiffProto.EverythingDiff - Class in com.google.errorprone.bugpatterns.apidiff
-
Protobuf type
devtools.staticanalysis.errorprone.apidiff.EverythingDiff
- ApiDiffProto.EverythingDiff.Builder - Class in com.google.errorprone.bugpatterns.apidiff
-
Protobuf type
devtools.staticanalysis.errorprone.apidiff.EverythingDiff
- ApiDiffProto.EverythingDiffOrBuilder - Interface in com.google.errorprone.bugpatterns.apidiff
- ApiDiffProto.MemberDiff - Class in com.google.errorprone.bugpatterns.apidiff
-
Protobuf type
devtools.staticanalysis.errorprone.apidiff.MemberDiff
- ApiDiffProto.MemberDiff.Builder - Class in com.google.errorprone.bugpatterns.apidiff
-
Protobuf type
devtools.staticanalysis.errorprone.apidiff.MemberDiff
- ApiDiffProto.MemberDiffOrBuilder - Interface in com.google.errorprone.bugpatterns.apidiff
- ApiFactory - Class in com.google.errorprone.bugpatterns.checkreturnvalue
-
Utility method to produce
Api
objects from javacSymbol.MethodSymbol
. - AppliedFix - Class in com.google.errorprone.fixes
-
Represents the corrected source which we think was intended, by applying a Fix.
- AppliedFix.Applier - Class in com.google.errorprone.fixes
- Applier(CharSequence, EndPosTable) - Constructor for class com.google.errorprone.fixes.AppliedFix.Applier
- apply(Fix) - Method in class com.google.errorprone.fixes.AppliedFix.Applier
-
Applies the suggestedFix to the source.
- apply(UStatement.UnifierWithUnconsumedStatements) - Method in class com.google.errorprone.refaster.UReturn
- apply(UStatement.UnifierWithUnconsumedStatements) - Method in class com.google.errorprone.refaster.UVariableDecl
- apply(TreePath, Context, DescriptionListener) - Method in interface com.google.errorprone.CodeTransformer
-
Apply recursively from the leaf node in the given
TreePath
. - apply(TreePath, Context, DescriptionListener) - Method in class com.google.errorprone.CompositeCodeTransformer
- apply(TreePath, Context, DescriptionListener) - Method in class com.google.errorprone.refaster.RefasterRule
- apply(TreePath, Context, DescriptionListener) - Method in class com.google.errorprone.scanner.ErrorProneScannerTransformer
- apply(Type, VisitorState) - Method in class com.google.errorprone.predicates.type.DescendantOf
- apply(Type, VisitorState) - Method in class com.google.errorprone.predicates.type.DescendantOfAny
- apply(Type, VisitorState) - Method in class com.google.errorprone.predicates.type.Exact
- apply(Type, VisitorState) - Method in class com.google.errorprone.predicates.type.ExactAny
- apply(Type, VisitorState) - Method in interface com.google.errorprone.predicates.TypePredicate
- applyDifferences(SourceFile) - Method in class com.google.errorprone.apply.DescriptionBasedDiff
- applyDifferences(SourceFile) - Method in interface com.google.errorprone.apply.Diff
-
Applies this difference to the supplied
sourceFile
. - applyOverrides(ErrorProneOptions) - Method in class com.google.errorprone.scanner.ScannerSupplier
-
Applies options to this
ScannerSupplier
. - applySeverityOverride(BugPattern.SeverityLevel) - Method in class com.google.errorprone.matchers.Description
-
Internal-only.
- argument(int, Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
- argumentCount(int) - Static method in class com.google.errorprone.matchers.Matchers
- ArgumentSelectionDefectChecker - Class in com.google.errorprone.bugpatterns.argumentselectiondefects
-
Checks the lexical distance between method parameter names and the argument names at call sites.
- ArgumentSelectionDefectChecker() - Constructor for class com.google.errorprone.bugpatterns.argumentselectiondefects.ArgumentSelectionDefectChecker
- Array - Enum in com.google.errorprone.predicates.type
-
Matches arrays.
- ArrayAsKeyOfSetOrMap - Class in com.google.errorprone.bugpatterns
-
Warns that users should not have an array as a key to a Set or Map
- ArrayAsKeyOfSetOrMap() - Constructor for class com.google.errorprone.bugpatterns.ArrayAsKeyOfSetOrMap
- ArrayEquals - Class in com.google.errorprone.bugpatterns
- ArrayEquals() - Constructor for class com.google.errorprone.bugpatterns.ArrayEquals
- ArrayFillIncompatibleType - Class in com.google.errorprone.bugpatterns
-
Checks when Arrays.fill(Object[], Object) is called with object types that are guaranteed to result in an ArrayStoreException.
- ArrayFillIncompatibleType() - Constructor for class com.google.errorprone.bugpatterns.ArrayFillIncompatibleType
- ArrayHashCode - Class in com.google.errorprone.bugpatterns
- ArrayHashCode() - Constructor for class com.google.errorprone.bugpatterns.ArrayHashCode
- arrayOf(Supplier<Type>) - Static method in class com.google.errorprone.suppliers.Suppliers
- ArrayRecordComponent - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - ArrayRecordComponent() - Constructor for class com.google.errorprone.bugpatterns.ArrayRecordComponent
- ArraysAsListPrimitiveArray - Class in com.google.errorprone.bugpatterns
- ArraysAsListPrimitiveArray() - Constructor for class com.google.errorprone.bugpatterns.ArraysAsListPrimitiveArray
- ArrayToString - Class in com.google.errorprone.bugpatterns
- arrayTypeForType(Type) - Method in class com.google.errorprone.VisitorState
-
Build an Array Type from another Type
- ascending() - Method in class com.google.errorprone.fixes.Replacements
-
Non-overlapping replacements, sorted in ascending order by position.
- asEnumValue(Class<T>, AnnotationValue) - Static method in class com.google.errorprone.util.MoreAnnotations
-
Converts the given attribute to an enum value.
- asFlagSet(long) - Static method in class com.google.errorprone.util.ASTHelpers
- asImportBlock() - Method in class com.google.errorprone.apply.ImportOrganizer.OrganizedImports
-
Get the organized imports as a block of imports, with blank links between the separate groups.
- asIntegerValue(AnnotationValue) - Static method in class com.google.errorprone.util.MoreAnnotations
-
Converts the given attribute to an integer value.
- asName(CharSequence) - Method in class com.google.errorprone.refaster.Inliner
- AssertEqualsArgumentOrderChecker - Class in com.google.errorprone.bugpatterns.argumentselectiondefects
-
Checker to make sure that assertEquals-like methods are called with the arguments expected and actual the right way round.
- AssertEqualsArgumentOrderChecker() - Constructor for class com.google.errorprone.bugpatterns.argumentselectiondefects.AssertEqualsArgumentOrderChecker
- assertEqualsInvocation() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches calls to the method
org.junit.Assert#assertEquals
and corresponding methods in JUnit 3.x. - AssertFalse - Class in com.google.errorprone.bugpatterns
- AssertFalse() - Constructor for class com.google.errorprone.bugpatterns.AssertFalse
- assertHasDiagnosticOnAllMatchingLines(JavaFileObject, DiagnosticTestHelper.LookForCheckNameInDiagnostic) - Method in class com.google.errorprone.DiagnosticTestHelper
-
Asserts that the diagnostics contain a diagnostic on each line of the source file that matches our bug marker pattern.
- AssertionFailureIgnored - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - AssertionFailureIgnored() - Constructor for class com.google.errorprone.bugpatterns.AssertionFailureIgnored
- assertionWithCondition(Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an assertion AST node if the given matcher matches its condition.
- assertNotEqualsInvocation() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches calls to the method
org.junit.Assert#assertNotEquals
and corresponding methods in JUnit 3.x. - Asserts - Class in com.google.errorprone.matchers
-
Matches assert statements which have a condition expression matched by the given matcher.
- Asserts(Matcher<ExpressionTree>) - Constructor for class com.google.errorprone.matchers.Asserts
- assertStatement(Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an
assert
statement where the condition is matched by the passedconditionMatcher
. - AssertThrowsMultipleStatements - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - AssertThrowsMultipleStatements() - Constructor for class com.google.errorprone.bugpatterns.AssertThrowsMultipleStatements
- AssertThrowsUtils - Class in com.google.errorprone.bugpatterns
-
Utility methods for refactoring try-fail pattern to assertThrows, which is preferred.
- assignment(Matcher<ExpressionTree>, Matcher<? super ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an assignment operator AST node if both of the given matchers match.
- ASSIGNMENT - Enum constant in enum com.google.errorprone.util.OperatorPrecedence
- ASSISTED_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
- ASSISTED_INJECT_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
- AssistedInjectAndInjectOnConstructors - Class in com.google.errorprone.bugpatterns.inject
- AssistedInjectAndInjectOnConstructors() - Constructor for class com.google.errorprone.bugpatterns.inject.AssistedInjectAndInjectOnConstructors
- AssistedInjectAndInjectOnSameConstructor - Class in com.google.errorprone.bugpatterns.inject
- AssistedInjectAndInjectOnSameConstructor() - Constructor for class com.google.errorprone.bugpatterns.inject.AssistedInjectAndInjectOnSameConstructor
- AssistedInjectScoping - Class in com.google.errorprone.bugpatterns.inject.guice
-
This checker matches iff *both* of the following conditions are true: 1) The class is assisted: a) If there is a constructor that is annotated with @Inject and that constructor has at least one parameter that is annotated with @Assisted.
- AssistedInjectScoping() - Constructor for class com.google.errorprone.bugpatterns.inject.guice.AssistedInjectScoping
- AssistedParameters - Class in com.google.errorprone.bugpatterns.inject.guice
- AssistedParameters() - Constructor for class com.google.errorprone.bugpatterns.inject.guice.AssistedParameters
- asStrings(AnnotationValue) - Static method in class com.google.errorprone.util.MoreAnnotations
-
Converts the given annotation value to one or more strings.
- asStringValue(AnnotationValue) - Static method in class com.google.errorprone.util.MoreAnnotations
-
Converts the given attribute to an string value.
- AST_MATCH - Enum constant in enum com.google.errorprone.BugCheckerRefactoringTestHelper.TestMode
- ASTHelpers - Class in com.google.errorprone.util
-
This class contains utility methods to work with the javac AST.
- ASTHelpers.ScanThrownTypes - Class in com.google.errorprone.util
-
Scanner for determining what types are thrown by a tree.
- ASTHelpers.TargetType - Class in com.google.errorprone.util
-
An expression's target type, see
ASTHelpers.targetType(com.google.errorprone.VisitorState)
. - ASTHelpersSuggestions - Class in com.google.errorprone.bugpatterns
-
A BugPattern; see the summary
- ASTHelpersSuggestions() - Constructor for class com.google.errorprone.bugpatterns.ASTHelpersSuggestions
- asTypes(AnnotationValue) - Static method in class com.google.errorprone.util.MoreAnnotations
-
Converts the given annotation value to one or more annotations.
- asTypeValue(AnnotationValue) - Static method in class com.google.errorprone.util.MoreAnnotations
-
Converts the given attribute to an enum value.
- asVarargs(T) - Static method in class com.google.errorprone.refaster.Refaster
-
Indicates that Refaster should treat this
@Repeated
argument specifically as a varargs argument. - AsyncCallableReturnsNull - Class in com.google.errorprone.bugpatterns
-
Checks that
AsyncCallable
implementations do not directlyreturn null
. - AsyncCallableReturnsNull() - Constructor for class com.google.errorprone.bugpatterns.AsyncCallableReturnsNull
- AsyncFunctionReturnsNull - Class in com.google.errorprone.bugpatterns
-
Checks that
AsyncFunction
implementations do not directlyreturn null
. - AsyncFunctionReturnsNull() - Constructor for class com.google.errorprone.bugpatterns.AsyncFunctionReturnsNull
- AT_LEAST_ONE - Enum constant in enum com.google.errorprone.matchers.ChildMultiMatcher.MatchType
-
Matches if at least one of the child elements match the matcher.
- AttemptedNegativeZero - Class in com.google.errorprone.bugpatterns
-
A BugPattern; see the summary.
- AttemptedNegativeZero() - Constructor for class com.google.errorprone.bugpatterns.AttemptedNegativeZero
- autoBuilders() - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.AutoValueRules
-
Returns a rule for
abstract
methods on@AutoBuilder
types. - AutoFactoryAtInject - Class in com.google.errorprone.bugpatterns.inject
- AutoFactoryAtInject() - Constructor for class com.google.errorprone.bugpatterns.inject.AutoFactoryAtInject
- AUTOGENERATED - Enum constant in enum com.google.errorprone.BugPattern.LinkType
-
Link to autogenerated documentation, hosted on the error-prone web site.
- AutoValueBoxedValues - Class in com.google.errorprone.bugpatterns
-
See summary for details.
- AutoValueBoxedValues() - Constructor for class com.google.errorprone.bugpatterns.AutoValueBoxedValues
- AutoValueBuilderDefaultsInConstructor - Class in com.google.errorprone.bugpatterns
-
See summary for details.
- AutoValueBuilderDefaultsInConstructor() - Constructor for class com.google.errorprone.bugpatterns.AutoValueBuilderDefaultsInConstructor
- autoValueBuilders() - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.AutoValueRules
-
Returns a rule for
abstract
methods on@AutoValue.Builder
types. - AutoValueConstructorOrderChecker - Class in com.google.errorprone.bugpatterns.argumentselectiondefects
-
Checker to make sure that constructors for AutoValue types are invoked with arguments in the correct order.
- AutoValueConstructorOrderChecker() - Constructor for class com.google.errorprone.bugpatterns.argumentselectiondefects.AutoValueConstructorOrderChecker
- AutoValueFinalMethods - Class in com.google.errorprone.bugpatterns
-
Checks the toString(), hashCode() and equals() methods are final in AutoValue classes.
- AutoValueFinalMethods() - Constructor for class com.google.errorprone.bugpatterns.AutoValueFinalMethods
- AutoValueImmutableFields - Class in com.google.errorprone.bugpatterns
-
Flags mutable collections in AutoValue.
- AutoValueImmutableFields() - Constructor for class com.google.errorprone.bugpatterns.AutoValueImmutableFields
- AutoValueRules - Class in com.google.errorprone.bugpatterns.checkreturnvalue
-
Rules for
@AutoValue
,@AutoValue.Builder
, and@AutoBuilder
types. - autoValues() - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.AutoValueRules
-
Returns a rule for
abstract
methods on@AutoValue
types. - AutoValueSubclassLeaked - Class in com.google.errorprone.bugpatterns
-
Matches
AutoValue_
uses outside the containing file. - AutoValueSubclassLeaked() - Constructor for class com.google.errorprone.bugpatterns.AutoValueSubclassLeaked
- AvoidObjectArrays - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - AvoidObjectArrays() - Constructor for class com.google.errorprone.bugpatterns.AvoidObjectArrays
B
- BadAnnotationImplementation - Class in com.google.errorprone.bugpatterns
-
Checker that ensures implementations of
Annotation
override equals and hashCode. - BadAnnotationImplementation() - Constructor for class com.google.errorprone.bugpatterns.BadAnnotationImplementation
- BadComparable - Class in com.google.errorprone.bugpatterns
- BadComparable() - Constructor for class com.google.errorprone.bugpatterns.BadComparable
- BadImport - Class in com.google.errorprone.bugpatterns
- BadInstanceof - Class in com.google.errorprone.bugpatterns
-
Matches instanceof checks where the expression is a subtype of the checked type.
- BadInstanceof() - Constructor for class com.google.errorprone.bugpatterns.BadInstanceof
- BadShiftAmount - Class in com.google.errorprone.bugpatterns
- BadShiftAmount() - Constructor for class com.google.errorprone.bugpatterns.BadShiftAmount
- BanClassLoader - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
that detects use of the unsafe JNDI API system. - BanClassLoader() - Constructor for class com.google.errorprone.bugpatterns.BanClassLoader
- BanJNDI - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
that detects use of the unsafe JNDI API system. - BanJNDI() - Constructor for class com.google.errorprone.bugpatterns.BanJNDI
- BANNED_OBJECT_INPUT_STREAM_METHODS - Static variable in class com.google.errorprone.bugpatterns.SerializableReads
- BanSerializableRead - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
that detects use of the unsafeSerializable
API. - BanSerializableRead() - Constructor for class com.google.errorprone.bugpatterns.BanSerializableRead
- BareDotMetacharacter - Class in com.google.errorprone.bugpatterns
-
A BugChecker; see the associated BugPattern for details.
- BareDotMetacharacter() - Constructor for class com.google.errorprone.bugpatterns.BareDotMetacharacter
- base() - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.Select
- base() - Method in class com.google.errorprone.dataflow.AccessPath
-
If present, base of access path is contained Element; if absent, base is `this`
- BaseErrorProneJavaCompiler - Class in com.google.errorprone
-
An Error Prone compiler that implements
JavaCompiler
. - BaseErrorProneJavaCompiler(ScannerSupplier) - Constructor for class com.google.errorprone.BaseErrorProneJavaCompiler
- BEFORE - Enum constant in enum com.google.errorprone.util.Commented.Position
- beforeComments() - Method in class com.google.errorprone.util.Commented
- BeforeTemplate - Annotation Type in com.google.errorprone.refaster.annotation
-
Desired "before" version of a refactoring.
- BigDecimalEquals - Class in com.google.errorprone.bugpatterns
-
Matches use of
BigDecimal#equals
, which compares scale as well (which is not likely to be intended). - BigDecimalEquals() - Constructor for class com.google.errorprone.bugpatterns.BigDecimalEquals
- BigDecimalLiteralDouble - Class in com.google.errorprone.bugpatterns
-
Matches usages of
new BigDecimal(double)
which lose precision. - BigDecimalLiteralDouble() - Constructor for class com.google.errorprone.bugpatterns.BigDecimalLiteralDouble
- BINARY_TREE_MATCHER - Static variable in class com.google.errorprone.bugpatterns.BadShiftAmount
- binaryNameFromClassname(String) - Method in class com.google.errorprone.VisitorState
-
Returns the Name object corresponding to the named class, converting it to binary form along the way if necessary (i.e., replacing Foo.Bar with Foo$Bar).
- binaryTree(Matcher<ExpressionTree>, Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches a binary tree if the given matchers match the operands in either order.
- bind(Context, ImportPolicy) - Static method in enum com.google.errorprone.refaster.ImportPolicy
- BinderIdentityRestoredDangerously - Class in com.google.errorprone.bugpatterns.android
- BinderIdentityRestoredDangerously() - Constructor for class com.google.errorprone.bugpatterns.android.BinderIdentityRestoredDangerously
- bindExpression(JCTree.JCExpression, VisitorState, GuardedByFlags) - Static method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByBinder
-
Creates a
GuardedByExpression
from a bound AST node, or returnsOptional.empty()
if the AST node doesn't correspond to a 'simple' lock expression. - bindGuardedByString(Tree, String, VisitorState, GuardedByFlags) - Static method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByUtils
- bindings - Variable in class com.google.errorprone.refaster.Inliner
- Bindings - Class in com.google.errorprone.refaster
-
A type-safe map from objects of type
Bindings.Key<V>
, which consist of aString
key and aBindings.Key
subclass, to values of typeV
. - Bindings.Key<V> - Class in com.google.errorprone.refaster
-
A key type for a
Binding
. - BindingToUnqualifiedCommonType - Class in com.google.errorprone.bugpatterns.inject.guice
- BindingToUnqualifiedCommonType() - Constructor for class com.google.errorprone.bugpatterns.inject.guice.BindingToUnqualifiedCommonType
- bindString(String, GuardedBySymbolResolver, GuardedByFlags) - Static method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByBinder
-
Creates a
GuardedByExpression
from a string, given the resolution context. - Block(Matcher<BlockTree>) - Constructor for class com.google.errorprone.matchers.Enclosing.Block
- BLOCK - Enum constant in enum com.google.errorprone.util.ErrorProneComment.ErrorProneCommentStyle
- BlockOrCase(Matcher<BlockTree>, Matcher<CaseTree>) - Constructor for class com.google.errorprone.matchers.Enclosing.BlockOrCase
- BlockTemplate - Class in com.google.errorprone.refaster
-
Template representing a sequence of consecutive statements.
- BlockTemplate() - Constructor for class com.google.errorprone.refaster.BlockTemplate
- BOOLEAN_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
- booleanConstant(boolean) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches the boolean constant (
Boolean.TRUE
orBoolean.FALSE
) corresponding to the given value. - booleanLit(boolean) - Static method in class com.google.errorprone.refaster.ULiteral
- booleanLiteral(boolean) - Static method in class com.google.errorprone.matchers.Matchers
- BooleanParameter - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - BooleanParameter() - Constructor for class com.google.errorprone.bugpatterns.BooleanParameter
- BOTTOM - Enum constant in enum com.google.errorprone.dataflow.nullnesspropagation.Nullness
- BoxedPrimitiveConstructor - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - BoxedPrimitiveConstructor() - Constructor for class com.google.errorprone.bugpatterns.BoxedPrimitiveConstructor
- BoxedPrimitiveEquality - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - BranchedSuggestedFixes - Class in com.google.errorprone.fixes
-
Helper class for accumulating a branching tree of alternative fixes designed to help build as set of potential fixes with different options in them.
- BranchedSuggestedFixes.Builder - Class in com.google.errorprone.fixes
-
Builder class for BranchedSuggestedFixes
- BugChecker - Class in com.google.errorprone.bugpatterns
-
A base class for implementing bug checkers.
- BugChecker() - Constructor for class com.google.errorprone.bugpatterns.BugChecker
- BugChecker.AnnotatedTypeTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.AnnotationTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.ArrayAccessTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.ArrayTypeTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.AssertTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.AssignmentTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.BinaryTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.BlockTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.BreakTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.CaseTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.CatchTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.ClassTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.CompilationUnitTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.CompoundAssignmentTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.ConditionalExpressionTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.ContinueTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.DoWhileLoopTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.EmptyStatementTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.EnhancedForLoopTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.ExpressionStatementTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.ForLoopTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.IdentifierTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.IfTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.ImportTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.InstanceOfTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.IntersectionTypeTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.LabeledStatementTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.LambdaExpressionTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.LiteralTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.MemberReferenceTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.MemberSelectTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.MethodInvocationTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.MethodTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.ModifiersTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.NewArrayTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.NewClassTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.ParameterizedTypeTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.ParenthesizedTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.PrimitiveTypeTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.ReturnTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.SuppressibleTreePathScanner<R,
P> - Class in com.google.errorprone.bugpatterns -
A
TreePathScanner
which skips trees which are suppressed for this check. - BugChecker.SwitchTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.SynchronizedTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.ThrowTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.TryTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.TypeCastTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.TypeParameterTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.UnaryTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.UnionTypeTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.VariableTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.WhileLoopTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugChecker.WildcardTreeMatcher - Interface in com.google.errorprone.bugpatterns
- BugCheckerInfo - Class in com.google.errorprone
-
An accessor for information about a single bug checker, including the metadata in the check's
@BugPattern
annotation and the class that implements the check. - BugCheckerRefactoringTestHelper - Class in com.google.errorprone
-
Compare a file transformed as suggested by
BugChecker
to an expected source. - BugCheckerRefactoringTestHelper.ExpectOutput - Class in com.google.errorprone
-
To assert the proper
.addInput().addOutput()
chain. - BugCheckerRefactoringTestHelper.FixChooser - Interface in com.google.errorprone
-
For checks that provide multiple possible fixes, chooses the one that will be applied for the test.
- BugCheckerRefactoringTestHelper.FixChoosers - Enum in com.google.errorprone
-
Predefined FixChoosers for selecting a fix by its position in the list
- BugCheckerRefactoringTestHelper.TestMode - Enum in com.google.errorprone
-
Test mode for matching refactored source against expected source.
- BugPattern - Annotation Type in com.google.errorprone
-
Describes a bug pattern detected by error-prone.
- BugPattern.LinkType - Enum in com.google.errorprone
-
The type of link to generate in the compiler error message.
- BugPattern.SeverityLevel - Enum in com.google.errorprone
-
The severity of the diagnostic.
- BugPattern.StandardTags - Class in com.google.errorprone
-
A collection of standardized tags that can be applied to BugPatterns.
- BugPatternIndexWriter - Class in com.google.errorprone
- BugPatternIndexWriter() - Constructor for class com.google.errorprone.BugPatternIndexWriter
- BugPatternInstance - Class in com.google.errorprone
-
A serialization-friendly POJO of the information in a
BugPattern
. - BugPatternInstance() - Constructor for class com.google.errorprone.BugPatternInstance
- BugPatternNaming - Class in com.google.errorprone.bugpatterns
-
See the
summary
. - BugPatternNaming() - Constructor for class com.google.errorprone.bugpatterns.BugPatternNaming
- BugPatternValidator - Class in com.google.errorprone
-
Validates an
@BugPattern
annotation for wellformedness. - build() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
- build() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
- build() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
- build() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
- build() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
- build() - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicyEvaluator.Builder
-
Builds a new
ResultUsePolicyEvaluator
. - build() - Method in class com.google.errorprone.bugpatterns.StronglyType.Builder
- build() - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafetyKnownTypes.MapBuilder
- build() - Method in class com.google.errorprone.dataflow.AccessPathStore.Builder
- build() - Method in class com.google.errorprone.ErrorProneFlags.Builder
- build() - Method in class com.google.errorprone.fixes.BranchedSuggestedFixes.Builder
- build() - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
- build() - Method in class com.google.errorprone.matchers.Description.Builder
- build(VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Builder
- buildDescription(Tree) - Method in class com.google.errorprone.bugpatterns.BugChecker
-
Returns a Description builder, which allows you to customize the diagnostic with a custom message or multiple fixes.
- buildDescription(JCTree) - Method in class com.google.errorprone.bugpatterns.BugChecker
-
Returns a Description builder, which allows you to customize the diagnostic with a custom message or multiple fixes.
- buildDescription(JCDiagnostic.DiagnosticPosition) - Method in class com.google.errorprone.bugpatterns.BugChecker
-
Returns a Description builder, which allows you to customize the diagnostic with a custom message or multiple fixes.
- builder() - Static method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety
- builder() - Static method in class com.google.errorprone.ErrorProneFlags
- builder() - Static method in class com.google.errorprone.fixes.BranchedSuggestedFixes
- builder() - Static method in class com.google.errorprone.fixes.SuggestedFix
- builder(ResultUsePolicyEvaluator.MethodInfo<C, S, M>) - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicyEvaluator
-
Returns a new
ResultUsePolicyEvaluator.Builder
for creating aResultUsePolicyEvaluator
. - builder(Tree, String, String, String) - Static method in class com.google.errorprone.matchers.Description
-
Returns a new builder for
Description
s. - builder(JCTree, String, String, String) - Static method in class com.google.errorprone.matchers.Description
-
Returns a new builder for
Description
s. - builder(JCDiagnostic.DiagnosticPosition, String, String, String) - Static method in class com.google.errorprone.matchers.Description
-
Returns a new builder for
Description
s. - Builder() - Constructor for class com.google.errorprone.bugpatterns.StronglyType.Builder
- Builder() - Constructor for class com.google.errorprone.fixes.BranchedSuggestedFixes.Builder
- Builder() - Constructor for class com.google.errorprone.fixes.SuggestedFix.Builder
- BuilderReturnThis - Class in com.google.errorprone.bugpatterns.checkreturnvalue
-
Discourages builder instance methods that do not return 'this'.
- BuilderReturnThis() - Constructor for class com.google.errorprone.bugpatterns.checkreturnvalue.BuilderReturnThis
- buildFix() - Method in class com.google.errorprone.bugpatterns.collectionincompatibletype.AbstractCollectionIncompatibleTypeMatcher.MatchResult
- buildFix(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.StringSplitter
- buildPartial() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
- buildPartial() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
- buildPartial() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
- buildPartial() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
- buildPartial() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
- BuiltInCheckerSuppliers - Class in com.google.errorprone.scanner
-
Static helper class that provides
ScannerSupplier
s andBugChecker
s for the built-in Error Prone checks, as opposed to plugin checks or checks used in tests. - BundleDeserializationCast - Class in com.google.errorprone.bugpatterns.android
- BundleDeserializationCast() - Constructor for class com.google.errorprone.bugpatterns.android.BundleDeserializationCast
- BYTE_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
- ByteBufferBackingArray - Class in com.google.errorprone.bugpatterns
-
Checks when ByteBuffer.array() is used without calling .arrayOffset() to know the offset of the array, or when the buffer wasn't initialized using ByteBuffer.wrap() or ByteBuffer.allocate().
- ByteBufferBackingArray() - Constructor for class com.google.errorprone.bugpatterns.ByteBufferBackingArray
C
- CacheLoaderNull - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - CacheLoaderNull() - Constructor for class com.google.errorprone.bugpatterns.CacheLoaderNull
- canAlias(JavaExpression, JavaExpression) - Method in class com.google.errorprone.dataflow.AccessPathStore
- canBeRemoved(Symbol.ClassSymbol) - Static method in class com.google.errorprone.util.ASTHelpers
- canBeRemoved(Symbol.VarSymbol) - Static method in class com.google.errorprone.util.ASTHelpers
- canBeRemoved(Symbol, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns whether this symbol is safe to remove.
- CanBeStaticAnalyzer - Class in com.google.errorprone.bugpatterns
-
Analyzes trees for references to their enclosing instance.
- CanBeStaticAnalyzer.CanBeStaticResult - Class in com.google.errorprone.bugpatterns
-
Stores the result of a can-be-static query.
- canBeStaticResult(Tree, Symbol, VisitorState) - Static method in class com.google.errorprone.bugpatterns.CanBeStaticAnalyzer
- CanBeStaticResult() - Constructor for class com.google.errorprone.bugpatterns.CanBeStaticAnalyzer.CanBeStaticResult
- canCompleteNormally(CaseTree) - Static method in class com.google.errorprone.util.Reachability
-
Returns true if the given case tree can complete normally, as defined by JLS 14.21.
- canCompleteNormally(StatementTree) - Static method in class com.google.errorprone.util.Reachability
-
Returns true if the given statement can complete normally, as defined by JLS 14.21.
- CanIgnoreReturnValue - Annotation Type in com.google.errorprone.annotations
-
Indicates that the return value of the annotated API is ignorable.
- CanIgnoreReturnValueSuggester - Class in com.google.errorprone.bugpatterns.checkreturnvalue
-
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
). - CannotMockFinalClass - Class in com.google.errorprone.bugpatterns
-
Bug pattern to recognize attempts to mock final types.
- CannotMockFinalClass() - Constructor for class com.google.errorprone.bugpatterns.CannotMockFinalClass
- CannotMockMethod - Class in com.google.errorprone.bugpatterns
-
A BugPattern; see the summary
- CannotMockMethod() - Constructor for class com.google.errorprone.bugpatterns.CannotMockMethod
- CanonicalDuration - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - CanonicalDuration() - Constructor for class com.google.errorprone.bugpatterns.CanonicalDuration
- canonicalName() - Method in class com.google.errorprone.BugCheckerInfo
- canonicalName() - Method in class com.google.errorprone.bugpatterns.BugChecker
- canonicalName() - Method in interface com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicyAnalyzer
-
The canonical name of the check.
- canonicalName() - Method in class com.google.errorprone.bugpatterns.StaticImports.StaticImportInfo
-
The fully-qualified canonical name of the type.
- canonicalName() - Method in interface com.google.errorprone.matchers.Suppressible
-
The canonical name of the check.
- canonicalName(String, BugPattern) - Static method in class com.google.errorprone.BugCheckerInfo
- canPossiblyBeStatic() - Method in class com.google.errorprone.bugpatterns.CanBeStaticAnalyzer.CanBeStaticResult
-
Whether the method could *possibly* be static: i.e., this is false if it references an instance field.
- castTree(ExpressionTree, String, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Casts the given
expressionTree
totoType
, adding parentheses if necessary. - CatchAndPrintStackTrace - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - CatchAndPrintStackTrace() - Constructor for class com.google.errorprone.bugpatterns.CatchAndPrintStackTrace
- CatchFail - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - CatchFail() - Constructor for class com.google.errorprone.bugpatterns.CatchFail
- CatchingUnchecked - Class in com.google.errorprone.bugpatterns
-
Flags code which catches
RuntimeException
s under the guise of catchingException
. - CatchingUnchecked() - Constructor for class com.google.errorprone.bugpatterns.CatchingUnchecked
- category - Variable in class com.google.errorprone.BugPatternInstance
- ChainedAssertionLosesContext - Class in com.google.errorprone.bugpatterns
-
Identifies calls to
assertThat
and similar methods inside the implementation of aSubject
assertion method. - ChainedAssertionLosesContext() - Constructor for class com.google.errorprone.bugpatterns.ChainedAssertionLosesContext
- ChainingConstructorIgnoresParameter - Class in com.google.errorprone.bugpatterns
-
Checks, if two constructors in a class both accept
Foo foo
and one calls the other, that the caller passesfoo
as a parameter. - ChainingConstructorIgnoresParameter() - Constructor for class com.google.errorprone.bugpatterns.ChainingConstructorIgnoresParameter
- Change() - Constructor for class com.google.errorprone.bugpatterns.AbstractMustBeClosedChecker.Change
- CHAR_SEQUENCE - Enum constant in enum com.google.errorprone.bugpatterns.TypesWithUndefinedEquality
- CHAR_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
- CharacterGetNumericValue - Class in com.google.errorprone.bugpatterns
-
Checks for use of Character.getNumericValue and UCharacter.getNumericValue
- CharacterGetNumericValue() - Constructor for class com.google.errorprone.bugpatterns.CharacterGetNumericValue
- charAt(int) - Method in class com.google.errorprone.refaster.StringName
- charLit(char) - Static method in class com.google.errorprone.refaster.ULiteral
- check(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.apidiff.AndroidJdkLibsChecker
- check(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffChecker
- CHECK_ALL_CONSTRUCTORS - Static variable in class com.google.errorprone.bugpatterns.CheckReturnValue
- CHECK_ALL_METHODS - Static variable in class com.google.errorprone.bugpatterns.CheckReturnValue
- CheckedExceptionNotThrown - Class in com.google.errorprone.bugpatterns
-
Flags checked exceptions which are claimed to be thrown, but are not.
- CheckedExceptionNotThrown() - Constructor for class com.google.errorprone.bugpatterns.CheckedExceptionNotThrown
- checkerClass() - Method in class com.google.errorprone.BugCheckerInfo
- checkForImmutability(Optional<ClassTree>, ImmutableSet<String>, Type.ClassType, ImmutableAnalysis.ViolationReporter) - Method in class com.google.errorprone.bugpatterns.threadsafety.ImmutableAnalysis
-
Check that an
@Immutable
-annotated class: does not declare or inherit any mutable fields, any immutable supertypes are instantiated with immutable type arguments as required by their containerOf spec, and any enclosing instances are immutable. - checkForThreadSafety(Optional<ClassTree>, ImmutableSet<String>, Type.ClassType) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafeAnalysis
-
Check that an
@ThreadSafe
-annotated class: does not declare or inherit any fields which are not thread safe, any threadsafe supertypes are instantiated with threadsafe type arguments as required by their containerOf spec, and any enclosing instances are threadsafe. - checkGuardedAccess(Tree, GuardedByExpression, HeldLockSet, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByChecker
- checkGuardedBy(boolean, String) - Static method in exception class com.google.errorprone.bugpatterns.threadsafety.IllegalGuardedBy
-
Throws an
IllegalGuardedBy
exception if the given condition is false. - checkGuardedBy(boolean, String, Object...) - Static method in exception class com.google.errorprone.bugpatterns.threadsafety.IllegalGuardedBy
-
Throws an
IllegalGuardedBy
exception if the given condition is false. - checkInstantiation(Symbol.TypeVariableSymbol, Collection<Type>) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety
-
Checks that any thread-safe type parameters are instantiated with thread-safe types.
- checkInstantiation(Collection<Symbol.TypeVariableSymbol>, Collection<Type>) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety
- checkInvocation(Type, Symbol) - Method in class com.google.errorprone.bugpatterns.threadsafety.ImmutableAnalysis
- checkInvocation(Type, Symbol) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafeAnalysis
- checkInvocation(Type, Symbol) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety
-
Checks the instantiation of any thread-safe type parameters in the current invocation.
- checkMethod(MethodTree, ImmutableSet<Symbol.MethodSymbol>, VisitorState) - Method in class com.google.errorprone.bugpatterns.JUnit3TestNotRun
-
Matches iff: Method's name begins with misspelled variation of "test".
- checkName - Variable in class com.google.errorprone.matchers.Description
-
The name of the check that produced the match.
- checkName() - Method in exception class com.google.errorprone.ErrorProneError
- CheckNotNullMultipleTimes - Class in com.google.errorprone.bugpatterns
-
Checks for the same variable being checked against null twice in a method.
- CheckNotNullMultipleTimes() - Constructor for class com.google.errorprone.bugpatterns.CheckNotNullMultipleTimes
- CheckReturnValue - Class in com.google.errorprone.bugpatterns
- CheckReturnValue - Annotation Type in com.google.errorprone.annotations
-
Indicates that the return value of the annotated method must be used.
- checkSuperInstantiation(Set<String>, AnnotationInfo, Type) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety
-
Check that the super-type of a
@ThreadSafe
-annotated type is instantiated with threadsafe type arguments where required by its annotation's containerOf element, and that any type arguments that correspond to containerOf type parameters on the sub-type are also in the super-type's containerOf spec. - ChildMultiMatcher<T,
N> - Class in com.google.errorprone.matchers -
A
MultiMatcher
that applies a matcher across multiple children of a single ancestor node. - ChildMultiMatcher(ChildMultiMatcher.MatchType, Matcher<N>) - Constructor for class com.google.errorprone.matchers.ChildMultiMatcher
- ChildMultiMatcher.MatchType - Enum in com.google.errorprone.matchers
- Choice<T> - Class in com.google.errorprone.refaster
-
A representation of a choice with zero or more options, which may be evaluated lazily or strictly.
- choose(List<Fix>) - Method in interface com.google.errorprone.BugCheckerRefactoringTestHelper.FixChooser
- Class(Matcher<ClassTree>) - Constructor for class com.google.errorprone.matchers.Enclosing.Class
- CLASS_DIFF_FIELD_NUMBER - Static variable in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
- CLASS_LITERAL - Enum constant in enum com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.Kind
- CLASS_NAME_FIELD_NUMBER - Static variable in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
- CLASS_NAME_FIELD_NUMBER - Static variable in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
- CLASS_NAME_WITH_T - Enum constant in enum com.google.errorprone.bugpatterns.TypeParameterNaming.TypeParameterNamingClassification
-
A valid Type Parameter name, that follows the style guide rule:
- ClassCanBeStatic - Class in com.google.errorprone.bugpatterns
- ClassCanBeStatic() - Constructor for class com.google.errorprone.bugpatterns.ClassCanBeStatic
- classDescriptor(Type, VisitorState) - Static method in class com.google.errorprone.util.Signatures
-
Returns the binary names of the class.
- classify(String) - Static method in enum com.google.errorprone.bugpatterns.TypeParameterNaming.TypeParameterNamingClassification
- ClassInitializationDeadlock - Class in com.google.errorprone.bugpatterns
-
See the summary.
- ClassInitializationDeadlock() - Constructor for class com.google.errorprone.bugpatterns.ClassInitializationDeadlock
- classLiteral(Matcher<? super ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
- ClassLiteral() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.ClassLiteral
- ClassMemberKey() - Constructor for class com.google.errorprone.bugpatterns.apidiff.ApiDiff.ClassMemberKey
- className - Variable in class com.google.errorprone.BugPatternInstance
- className() - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.Api
-
Returns the fully qualified type that contains the given method/constructor.
- ClassName - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - ClassName() - Constructor for class com.google.errorprone.bugpatterns.ClassName
- ClassNamedLikeTypeParameter - Class in com.google.errorprone.bugpatterns
- ClassNamedLikeTypeParameter() - Constructor for class com.google.errorprone.bugpatterns.ClassNamedLikeTypeParameter
- ClassNewInstance - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - ClassNewInstance() - Constructor for class com.google.errorprone.bugpatterns.ClassNewInstance
- classReference(Inliner, CharSequence, CharSequence) - Method in enum com.google.errorprone.refaster.ImportPolicy
- clazz - Variable in class com.google.errorprone.matchers.Enclosing.Block
- clazz - Variable in class com.google.errorprone.matchers.Enclosing.Class
- clazz - Variable in class com.google.errorprone.matchers.Enclosing.Method
- clazz() - Method in interface com.google.errorprone.dataflow.nullnesspropagation.MethodInfo
- clazz() - Static method in class com.google.errorprone.refaster.Refaster
-
This is a placeholder for the expression T.class.
- clear() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
- clear() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
- clear() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
- clear() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
- clear() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
- clearBinding(Bindings.Key<?>) - Method in class com.google.errorprone.refaster.Unifier
- clearClassDiff() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
- clearClassName() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
-
string class_name = 1;
- clearClassName() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
-
string class_name = 1;
- clearDiagnostics() - Method in class com.google.errorprone.DiagnosticTestHelper
- clearDiff() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
- clearEverythingDiff() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
-
.devtools.staticanalysis.errorprone.apidiff.EverythingDiff everything_diff = 1;
- clearField(Descriptors.FieldDescriptor) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
- clearField(Descriptors.FieldDescriptor) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
- clearField(Descriptors.FieldDescriptor) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
- clearField(Descriptors.FieldDescriptor) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
- clearField(Descriptors.FieldDescriptor) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
- clearIdentifier() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
-
string identifier = 1;
- clearMember() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
- clearMemberDescriptor() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
-
a JVMS 4.3 member descriptor
- clearMemberDiff() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
-
.devtools.staticanalysis.errorprone.apidiff.MemberDiff member_diff = 2;
- clearOneof(Descriptors.OneofDescriptor) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
- clearOneof(Descriptors.OneofDescriptor) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
- clearOneof(Descriptors.OneofDescriptor) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
- clearOneof(Descriptors.OneofDescriptor) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
- clearOneof(Descriptors.OneofDescriptor) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
- clone() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
- clone() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
- clone() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
- clone() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
- clone() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
- cloneWithoutMetadata(Type) - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.ApiFactory
- CLOSEABLE_DECORATOR_TYPES - Static variable in class com.google.errorprone.bugpatterns.CloseableDecoratorTypes
- CloseableDecoratorTypes - Class in com.google.errorprone.bugpatterns
-
Common
AutoCloseable
decorator types that wrap aroundAutoCloseable
resources, which are always closed when the enclosing decorators are closed. - CloseableProvides - Class in com.google.errorprone.bugpatterns.inject
- CloseableProvides() - Constructor for class com.google.errorprone.bugpatterns.inject.CloseableProvides
- ClosingStandardOutputStreams - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - ClosingStandardOutputStreams() - Constructor for class com.google.errorprone.bugpatterns.ClosingStandardOutputStreams
- coalesce(String, String) - Method in enum com.google.errorprone.fixes.Replacements.CoalescePolicy
-
Handle two insertions at the same position.
- CodeTransformer - Interface in com.google.errorprone
-
Interface for a transformation over Java source.
- COLLECTION - Enum constant in enum com.google.errorprone.bugpatterns.TypesWithUndefinedEquality
- CollectionIncompatibleType - Class in com.google.errorprone.bugpatterns.collectionincompatibletype
-
Checker for calling Object-accepting methods with types that don't match the type arguments of their container types.
- CollectionToArraySafeParameter - Class in com.google.errorprone.bugpatterns
- CollectionToArraySafeParameter() - Constructor for class com.google.errorprone.bugpatterns.CollectionToArraySafeParameter
- CollectionUndefinedEquality - Class in com.google.errorprone.bugpatterns.collectionincompatibletype
-
Highlights use of
Collection#contains
(and others) with types that do not have well-defined equals. - CollectionUndefinedEquality() - Constructor for class com.google.errorprone.bugpatterns.collectionincompatibletype.CollectionUndefinedEquality
- collector - Variable in class com.google.errorprone.DiagnosticTestHelper
- COLLECTOR_OF_CALL - Static variable in class com.google.errorprone.bugpatterns.CollectorShouldNotUseState
- CollectorShouldNotUseState - Class in com.google.errorprone.bugpatterns
- CollectorShouldNotUseState() - Constructor for class com.google.errorprone.bugpatterns.CollectorShouldNotUseState
- com.google.errorprone - package com.google.errorprone
- com.google.errorprone.annotations - package com.google.errorprone.annotations
- com.google.errorprone.annotations.concurrent - package com.google.errorprone.annotations.concurrent
- com.google.errorprone.apply - package com.google.errorprone.apply
- com.google.errorprone.bugpatterns - package com.google.errorprone.bugpatterns
-
Checks added to the java compiler which detect common bug patterns.
- com.google.errorprone.bugpatterns.android - package com.google.errorprone.bugpatterns.android
- com.google.errorprone.bugpatterns.apidiff - package com.google.errorprone.bugpatterns.apidiff
- com.google.errorprone.bugpatterns.argumentselectiondefects - package com.google.errorprone.bugpatterns.argumentselectiondefects
- com.google.errorprone.bugpatterns.checkreturnvalue - package com.google.errorprone.bugpatterns.checkreturnvalue
- com.google.errorprone.bugpatterns.collectionincompatibletype - package com.google.errorprone.bugpatterns.collectionincompatibletype
- com.google.errorprone.bugpatterns.flogger - package com.google.errorprone.bugpatterns.flogger
- com.google.errorprone.bugpatterns.formatstring - package com.google.errorprone.bugpatterns.formatstring
- com.google.errorprone.bugpatterns.inject - package com.google.errorprone.bugpatterns.inject
-
Bug patterns related to dependency injection and JSR 330.
- com.google.errorprone.bugpatterns.inject.dagger - package com.google.errorprone.bugpatterns.inject.dagger
-
Bug patterns related to Dagger.
- com.google.errorprone.bugpatterns.inject.guice - package com.google.errorprone.bugpatterns.inject.guice
-
Bug patterns related to Guice.
- com.google.errorprone.bugpatterns.inlineme - package com.google.errorprone.bugpatterns.inlineme
- com.google.errorprone.bugpatterns.javadoc - package com.google.errorprone.bugpatterns.javadoc
- com.google.errorprone.bugpatterns.nullness - package com.google.errorprone.bugpatterns.nullness
- com.google.errorprone.bugpatterns.overloading - package com.google.errorprone.bugpatterns.overloading
- com.google.errorprone.bugpatterns.threadsafety - package com.google.errorprone.bugpatterns.threadsafety
- com.google.errorprone.bugpatterns.time - package com.google.errorprone.bugpatterns.time
- com.google.errorprone.dataflow - package com.google.errorprone.dataflow
- com.google.errorprone.dataflow.nullnesspropagation - package com.google.errorprone.dataflow.nullnesspropagation
- com.google.errorprone.dataflow.nullnesspropagation.inference - package com.google.errorprone.dataflow.nullnesspropagation.inference
- com.google.errorprone.fixes - package com.google.errorprone.fixes
-
Support code for providing automated corrections for defects we find.
- com.google.errorprone.matchers - package com.google.errorprone.matchers
-
A predicate DSL for matching javac AST nodes.
- com.google.errorprone.matchers.method - package com.google.errorprone.matchers.method
- com.google.errorprone.names - package com.google.errorprone.names
- com.google.errorprone.predicates - package com.google.errorprone.predicates
- com.google.errorprone.predicates.type - package com.google.errorprone.predicates.type
- com.google.errorprone.refaster - package com.google.errorprone.refaster
- com.google.errorprone.refaster.annotation - package com.google.errorprone.refaster.annotation
- com.google.errorprone.scanner - package com.google.errorprone.scanner
- com.google.errorprone.suppliers - package com.google.errorprone.suppliers
-
Supports matchers, but rather than giving Matcher implementations which are predicates on individual AST nodes, a supplier gives contextual information from the traversal of the AST.
- com.google.errorprone.util - package com.google.errorprone.util
-
Utility code.
- Commented<T> - Class in com.google.errorprone.util
-
Class to hold AST nodes annotated with the comments that are associated with them
- Commented() - Constructor for class com.google.errorprone.util.Commented
- Commented.Position - Enum in com.google.errorprone.util
-
Identifies the position of a comment relative to the associated treenode.
- comments() - Method in class com.google.errorprone.util.ErrorProneToken
- Comments - Class in com.google.errorprone.util
-
Utilities for attaching comments to relevant AST nodes
- ComparableAndComparator - Class in com.google.errorprone.bugpatterns
- ComparableAndComparator() - Constructor for class com.google.errorprone.bugpatterns.ComparableAndComparator
- ComparableType - Class in com.google.errorprone.bugpatterns
- ComparableType() - Constructor for class com.google.errorprone.bugpatterns.ComparableType
- compareToMethodDeclaration() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches
compareTo
method declaration. - CompareToZero - Class in com.google.errorprone.bugpatterns
-
Suggests comparing the result of
compareTo
to only0
. - CompareToZero() - Constructor for class com.google.errorprone.bugpatterns.CompareToZero
- ComparingThisWithNull - Class in com.google.errorprone.bugpatterns
-
Check for expressions containing
this != null
orthis == null
- ComparingThisWithNull() - Constructor for class com.google.errorprone.bugpatterns.ComparingThisWithNull
- ComparisonContractViolated - Class in com.google.errorprone.bugpatterns
- ComparisonContractViolated() - Constructor for class com.google.errorprone.bugpatterns.ComparisonContractViolated
- comparisonKey() - Method in interface com.google.errorprone.matchers.method.MethodInvocationMatcher.Token
-
The value to compare with
MethodInvocationMatcher.TokenType.extract(Context, VisitorState)
to determine whether this property matches. - comparisonKey() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.DefinedIn
- comparisonKey() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.Kind
- comparisonKey() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.MethodName
- comparisonKey() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ParameterTypes
- comparisonKey() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ReceiverSupertype
- comparisonKey() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ReceiverType
- ComparisonOutOfRange - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - ComparisonOutOfRange() - Constructor for class com.google.errorprone.bugpatterns.ComparisonOutOfRange
- compatibilityOfTypes(Type, Type, VisitorState) - Method in class com.google.errorprone.bugpatterns.TypeCompatibility
- CompatibleWith - Annotation Type in com.google.errorprone.annotations
-
Declares that a parameter to a method must be "compatible with" one of the type parameters in the method's enclosing class, or on the method itself.
- CompatibleWithMisuse - Class in com.google.errorprone.bugpatterns.collectionincompatibletype
- CompatibleWithMisuse() - Constructor for class com.google.errorprone.bugpatterns.collectionincompatibletype.CompatibleWithMisuse
- CompilationTestHelper - Class in com.google.errorprone
-
Helps test Error Prone bug checkers and compilations.
- compile(ImmutableList<String>) - Method in class com.google.errorprone.fixes.SuggestedFixes.FixCompiler
- compile(Iterable<MethodInvocationMatcher.Rule>) - Static method in class com.google.errorprone.matchers.method.MethodInvocationMatcher
-
Constructs a Matcher that matches for method invocations (including constructor invocations) satisfying at least one of the given Rule specifications.
- compilesWithFix(Fix, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Returns true if the current compilation would succeed with the given fix applied.
- compilesWithFix(Fix, VisitorState, ImmutableList<String>, boolean) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Returns true if the current compilation would succeed with the given fix applied, using the given additional compiler options, optionally limiting the checking of compilation failures to the compilation unit in which the fix is applied.
- CompileTimeConstant - Annotation Type in com.google.errorprone.annotations
-
Annotation for method parameter and class field declarations, which denotes that corresponding actual values must be compile-time constant expressions.
- CompileTimeConstantChecker - Class in com.google.errorprone.bugpatterns
-
A Bugpattern; see the accompanying Markdown documentation.
- CompileTimeConstantChecker() - Constructor for class com.google.errorprone.bugpatterns.CompileTimeConstantChecker
- CompileTimeConstantExpressionMatcher - Class in com.google.errorprone.matchers
-
A matcher for compile-time-constant expressions.
- CompileTimeConstantExpressionMatcher() - Constructor for class com.google.errorprone.matchers.CompileTimeConstantExpressionMatcher
- ComplexBooleanConstant - Class in com.google.errorprone.bugpatterns
- ComplexBooleanConstant() - Constructor for class com.google.errorprone.bugpatterns.ComplexBooleanConstant
- componentBuilders() - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.DaggerRules
-
Returns a rule that handles
@dagger.Component.Builder
types, making their fluent setter methods' results ignorable. - compose(CodeTransformer...) - Static method in class com.google.errorprone.CompositeCodeTransformer
- compose(Iterable<? extends CodeTransformer>) - Static method in class com.google.errorprone.CompositeCodeTransformer
- CompositeCodeTransformer - Class in com.google.errorprone
-
Combines multiple
CodeTransformer
s into one. - compoundAssignment(Tree.Kind, Matcher<ExpressionTree>, Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches a compound assignment operator AST node which matches a given left-operand matcher, a given right-operand matcher, and a specific compound assignment operator.
- compoundAssignment(Set<Tree.Kind>, Matcher<ExpressionTree>, Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches a compound assignment operator AST node which matches a given left-operand matcher, a given right-operand matcher, and is one of a set of compound assignment operators.
- CompoundAssignment - Class in com.google.errorprone.matchers
-
Matcher for a compound-assignment operator expression.
- CompoundAssignment(Set<Tree.Kind>, Matcher<ExpressionTree>, Matcher<ExpressionTree>) - Constructor for class com.google.errorprone.matchers.CompoundAssignment
-
Creates a new compound-assignment operator matcher, which matches a compound assignment expression with one of a set of operators and whose receiver and expression match the given matchers.
- ComputeIfAbsentAmbiguousReference - Class in com.google.errorprone.bugpatterns
-
Flags ambiguous creations of objects in
Map.computeIfAbsent(K, java.util.function.Function<? super K, ? extends V>)
. - ComputeIfAbsentAmbiguousReference() - Constructor for class com.google.errorprone.bugpatterns.ComputeIfAbsentAmbiguousReference
- CONCURRENCY - Static variable in class com.google.errorprone.BugPattern.StandardTags
-
This check points out potential issues when operating in a concurrent context
- condition(boolean) - Method in class com.google.errorprone.refaster.Choice
-
Returns this choice if
condition
, otherwise the empty choice. - condition(boolean, T) - Static method in class com.google.errorprone.refaster.Choice
-
Returns a
Choice
witht
as an option ifcondition
, and no options otherwise. - condition(Predicate<? super T>) - Method in class com.google.errorprone.refaster.Choice
-
Filters the choices to those that satisfy the provided
Predicate
. - CONDITIONAL_AND - Enum constant in enum com.google.errorprone.util.OperatorPrecedence
- CONDITIONAL_OR - Enum constant in enum com.google.errorprone.util.OperatorPrecedence
- ConditionalExpressionNumericPromotion - Class in com.google.errorprone.bugpatterns
- ConditionalExpressionNumericPromotion() - Constructor for class com.google.errorprone.bugpatterns.ConditionalExpressionNumericPromotion
- conflictingAnnotations(List<String>, String) - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.ErrorMessages
-
Error message for when annotations mapped to conflicting
ResultUsePolicy
s are applied to the same element. - CONSTANT_EQUALS - Enum constant in enum com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions.ConstantExpression.ConstantExpressionKind
- ConstantEquals() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions.ConstantEquals
- constantExpression(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions
- ConstantExpression() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions.ConstantExpression
- ConstantExpressions - Class in com.google.errorprone.bugpatterns.threadsafety
-
Helper for establishing whether expressions correspond to a constant expression.
- ConstantExpressions.ConstantEquals - Class in com.google.errorprone.bugpatterns.threadsafety
-
Represents a binary equals call on two constant expressions.
- ConstantExpressions.ConstantExpression - Class in com.google.errorprone.bugpatterns.threadsafety
-
Represents a constant expression.
- ConstantExpressions.ConstantExpression.ConstantExpressionKind - Enum in com.google.errorprone.bugpatterns.threadsafety
-
The kind of a constant expression.
- ConstantExpressions.ConstantExpressionVisitor - Interface in com.google.errorprone.bugpatterns.threadsafety
-
Visitor for scanning over the components of a constant expression.
- ConstantExpressions.PureMethodInvocation - Class in com.google.errorprone.bugpatterns.threadsafety
-
Represents both a constant method call or a constant field/local access, depending on the actual type of
symbol
. - ConstantExpressions.Truthiness - Class in com.google.errorprone.bugpatterns.threadsafety
-
Represents sets of things known to be true and false if a boolean statement evaluated true.
- ConstantField - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - ConstantField() - Constructor for class com.google.errorprone.bugpatterns.ConstantField
- ConstantOverflow - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - ConstantOverflow() - Constructor for class com.google.errorprone.bugpatterns.ConstantOverflow
- ConstantPatternCompile - Class in com.google.errorprone.bugpatterns
-
Flags variables initialized with
Pattern.compile(String)
calls that could be constants. - ConstantPatternCompile() - Constructor for class com.google.errorprone.bugpatterns.ConstantPatternCompile
- ConstantPropagationAnalysis - Class in com.google.errorprone.dataflow
-
An interface to the constant propagation analysis.
- constructor() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches a constructor.
- constructor() - Static method in class com.google.errorprone.matchers.method.MethodMatchers
- constructor(ChildMultiMatcher.MatchType, Matcher<MethodTree>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches a class in which any of/all of its constructors match the given constructorMatcher.
- CONSTRUCTOR - Enum constant in enum com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicyEvaluator.MethodInfo.MethodKind
-
A constructor.
- CONSTRUCTOR - Enum constant in enum com.google.errorprone.matchers.method.MethodInvocationMatcher.MethodKind
- ConstructorMatchState - Class in com.google.errorprone.matchers.method
-
The state that is propagated across a match operation for constructors.
- ConstructorMatchState() - Constructor for class com.google.errorprone.matchers.method.ConstructorMatchState
- constructorOfClass(String) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches a constructor declaration in a specific enclosing class.
- ConstructorOfClass - Class in com.google.errorprone.matchers
-
Applies the given matcher to the constructor(s) of the given class.
- ConstructorOfClass(ChildMultiMatcher.MatchType, Matcher<MethodTree>) - Constructor for class com.google.errorprone.matchers.ConstructorOfClass
- constValue(Tree) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns the compile-time constant value of a tree if it has one, or
null
. - constValue(Tree, Class<? extends T>) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns the compile-time constant value of a tree if it is of type clazz, or
null
. - containerOf() - Element in annotation type com.google.errorprone.annotations.Immutable
-
When annotating a generic type as immutable,
containerOf
specifies which type parameters must be instantiated with immutable types for the container to be deeply immutable. - containerOf() - Method in class com.google.errorprone.bugpatterns.threadsafety.AnnotationInfo
- containerOfAnnotation(Class<? extends Annotation>) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Builder
-
An annotation which marks a generic parameter as a container type.
- containerOfAnnotation(Iterable<String>) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Builder
-
An annotation which marks a generic parameter as a container type.
- ContainmentMatchers - Class in com.google.errorprone.bugpatterns.collectionincompatibletype
-
Matchers for methods which express containment, like
Collection.contains(java.lang.Object)
. - contains(Matcher<Tree>) - Static method in class com.google.errorprone.matchers.Matchers
-
Applies the given matcher recursively to all descendants of an AST node, and matches if any matching descendant node is found.
- contains(Class<? extends V>, Matcher<? super V>) - Static method in class com.google.errorprone.matchers.Matchers
-
Applies the given matcher recursively to all descendants of an AST node, and matches if any matching descendant node is found.
- Contains - Class in com.google.errorprone.matchers
-
A matcher that recursively inspects a tree, applying the given matcher to all levels of each tree and returning
true
if any match is found. - Contains(Matcher<Tree>) - Constructor for class com.google.errorprone.matchers.Contains
- containsAnonymousClassUsingState - Variable in class com.google.errorprone.bugpatterns.CollectorShouldNotUseState
- containsComments(Tree, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns whether the given
tree
contains any comments in its source. - containsSyntheticParameterName(Symbol.MethodSymbol) - Static method in class com.google.errorprone.bugpatterns.argumentselectiondefects.NamedParameterComment
-
Returns true if the method has synthetic parameter names, indicating the real names are not available.
- containsTestMethod(Tree) - Static method in class com.google.errorprone.matchers.JUnitMatchers
-
Returns true if the tree contains a method invocation that looks like a test assertion.
- contentEquals(CharSequence) - Method in class com.google.errorprone.refaster.StringName
- context - Variable in class com.google.errorprone.VisitorState
- context() - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedBySymbolResolver
- continueStatement() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches a
continue
statement. - ControlFlowVisitor - Class in com.google.errorprone.refaster
-
Analyzes a series of statements to determine whether they don't, sometimes, or never return.
- ControlFlowVisitor.Result - Enum in com.google.errorprone.refaster
-
The state of whether a sequence of statements may return, break out of the visited statements, or neither.
- convert(String) - Method in class com.google.errorprone.DocGenTool.TargetEnumConverter
- CONVERT_TO_IDENT - Static variable in class com.google.errorprone.refaster.UMemberSelect
-
Use of this string as an expression in a member select will cause this method select to be inlined as an identifier.
- convertRegexToLiteral(String) - Static method in class com.google.errorprone.util.Regexes
-
If the given regexes matches exactly one string, returns that string.
- convertToLowerUnderscore(String) - Static method in class com.google.errorprone.names.NamingConventions
- copy() - Method in class com.google.errorprone.dataflow.AccessPathStore
- correctAnnotation() - Method in class com.google.errorprone.bugpatterns.JUnit4SetUpNotRun
- correctAnnotation() - Method in class com.google.errorprone.bugpatterns.JUnit4TearDownNotRun
- CouldNotResolveImportException - Exception Class in com.google.errorprone.refaster
-
Exception thrown when a class symbol could not be resolved by the compiler.
- CouldNotResolveImportException(CharSequence) - Constructor for exception class com.google.errorprone.refaster.CouldNotResolveImportException
- counters() - Method in interface com.google.errorprone.StatisticsCollector
-
Returns a copy of the counters in this statistics collector.
- counters() - Method in class com.google.errorprone.VisitorState
-
Returns a copy of all of the counters previously added to this VisitorState with
VisitorState.incrementCounter(com.google.errorprone.bugpatterns.BugChecker, java.lang.String)
. - create() - Static method in class com.google.errorprone.refaster.Bindings
- create() - Static method in class com.google.errorprone.scanner.ErrorProneInjector
- create(int, int, String) - Static method in class com.google.errorprone.fixes.Replacement
-
Creates a
Replacement
. - create(ImmutableClassToInstanceMap<Annotation>, Iterable<UTypeVar>, Map<String, ? extends UType>, UExpression, UType) - Static method in class com.google.errorprone.refaster.ExpressionTemplate
- create(ImmutableClassToInstanceMap<Annotation>, Iterable<UTypeVar>, Map<String, ? extends UType>, Iterable<? extends UStatement>) - Static method in class com.google.errorprone.refaster.BlockTemplate
- create(ImmutableList<String>) - Static method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ParameterTypes
- create(ImmutableMap<MethodInvocationMatcher.TokenType, ? extends Set<MethodInvocationMatcher.Token>>) - Static method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Rule
-
Builds a Rule object from a map.
- create(ResultUseRule<?, S>, ResultUseRule.RuleScope, S, ResultUsePolicy) - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule.Evaluation
-
Creates a new
ResultUseRule.Evaluation
. - create(GuardedByExpression, Symbol, Type) - Static method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.Select
- create(Fix, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes.FixCompiler
- create(MethodInvocationMatcher.MethodKind) - Static method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.Kind
- create(Bindings) - Static method in class com.google.errorprone.refaster.Bindings
- create(Bindings.Key<V>, V) - Static method in class com.google.errorprone.refaster.Bindings
- create(Bindings.Key<V1>, V1, Bindings.Key<V2>, V2) - Static method in class com.google.errorprone.refaster.Bindings
- create(UClassIdent, CharSequence, UType) - Static method in class com.google.errorprone.refaster.UMethodIdent
- create(UClassIdent, CharSequence, UType) - Static method in class com.google.errorprone.refaster.UStaticIdent
- create(UExpression) - Static method in class com.google.errorprone.refaster.UReturn
- create(UExpression...) - Static method in class com.google.errorprone.refaster.UAnyOf
- create(UExpression, UExpression...) - Static method in class com.google.errorprone.refaster.UMethodInvocation
- create(UExpression, UType) - Static method in class com.google.errorprone.refaster.ExpressionTemplate
- create(UExpression, CharSequence, UType) - Static method in class com.google.errorprone.refaster.UMemberSelect
- create(Unifier, List<? extends StatementTree>) - Static method in class com.google.errorprone.refaster.UStatement.UnifierWithUnconsumedStatements
- create(UStatement...) - Static method in class com.google.errorprone.refaster.BlockTemplate
- create(UType, UType...) - Static method in class com.google.errorprone.refaster.UMethodType
- create(UType, List<UType>) - Static method in class com.google.errorprone.refaster.UMethodType
- create(Scanner) - Static method in class com.google.errorprone.scanner.ErrorProneScannerTransformer
- create(ExpressionTree, Type, Type, AbstractCollectionIncompatibleTypeMatcher) - Static method in class com.google.errorprone.bugpatterns.collectionincompatibletype.AbstractCollectionIncompatibleTypeMatcher.MatchResult
- create(Tree.Kind, Object) - Static method in class com.google.errorprone.refaster.ULiteral
- create(Symbol) - Static method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.ClassLiteral
- create(Symbol) - Static method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.LocalVariable
- create(Symbol) - Static method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.TypeLiteral
- create(Symbol.ClassSymbol, CharSequence, UType) - Static method in class com.google.errorprone.refaster.UMethodIdent
- create(Symbol.ClassSymbol, CharSequence, UType) - Static method in class com.google.errorprone.refaster.UStaticIdent
- create(Symbol.VarSymbol, ModifiersTree) - Static method in class com.google.errorprone.refaster.LocalVarBinding
- create(Type) - Static method in class com.google.errorprone.refaster.UTypeVar.TypeWithExpression
- create(Type, JCTree.JCExpression) - Static method in class com.google.errorprone.refaster.UTypeVar.TypeWithExpression
- create(JCTree.JCCompilationUnit) - Static method in class com.google.errorprone.apply.ImportStatements
- create(JCTree.JCCompilationUnit, ImportOrganizer) - Static method in class com.google.errorprone.apply.DescriptionBasedDiff
- create(JCTree.JCCompilationUnit, ImportOrganizer) - Static method in class com.google.errorprone.apply.ImportStatements
- create(CharSequence) - Static method in class com.google.errorprone.refaster.UFreeIdent
- create(CharSequence, UExpression) - Static method in class com.google.errorprone.refaster.UVariableDecl
- create(CharSequence, UExpression, UExpression) - Static method in class com.google.errorprone.refaster.UVariableDecl
- create(CharSequence, List<UType>) - Static method in class com.google.errorprone.refaster.UClassType
- create(Class<? extends BugChecker>) - Static method in class com.google.errorprone.BugCheckerInfo
- create(Iterable<? extends UExpression>) - Static method in class com.google.errorprone.refaster.UAnyOf
- create(Iterable<UTypeVar>, Map<String, ? extends UType>, UStatement...) - Static method in class com.google.errorprone.refaster.BlockTemplate
- create(String) - Static method in class com.google.errorprone.bugpatterns.formatstring.FormatStringValidation.ValidationResult
- create(String) - Static method in class com.google.errorprone.bugpatterns.threadsafety.AnnotationInfo
- create(String) - Static method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.DefinedIn
- create(String) - Static method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.MethodName
- create(String) - Static method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ReceiverSupertype
- create(String) - Static method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ReceiverType
- create(String) - Static method in class com.google.errorprone.refaster.UTypeVar
- create(String, UType) - Static method in class com.google.errorprone.refaster.UTypeVar
- create(String, UType...) - Static method in class com.google.errorprone.refaster.UClassType
- create(String, UType, UType) - Static method in class com.google.errorprone.refaster.UTypeVar
- create(String, CharSequence, UType) - Static method in class com.google.errorprone.refaster.UStaticIdent
- create(String, Iterable<UTypeVar>, Collection<? extends Template<?>>, Collection<? extends Template<?>>, ImmutableClassToInstanceMap<Annotation>) - Static method in class com.google.errorprone.refaster.RefasterRule
- create(String, Iterable<String>) - Static method in class com.google.errorprone.bugpatterns.threadsafety.AnnotationInfo
- create(String, String) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiff.ClassMemberKey
- create(String, Collection<? extends Template<?>>, Collection<? extends Template<?>>) - Static method in class com.google.errorprone.refaster.RefasterRule
- create(List<? extends UExpression>, UExpression, UExpression...) - Static method in class com.google.errorprone.refaster.UMethodInvocation
- create(List<? extends UExpression>, UExpression, List<UExpression>) - Static method in class com.google.errorprone.refaster.UMethodInvocation
- create(List<UTypeVar>, UType) - Static method in class com.google.errorprone.refaster.UForAll
- create(Map<String, ? extends UType>, UExpression, UType) - Static method in class com.google.errorprone.refaster.ExpressionTemplate
- create(Map<String, ? extends UType>, UStatement...) - Static method in class com.google.errorprone.refaster.BlockTemplate
- create(JavaFileObject) - Static method in class com.google.errorprone.apply.SourceFile
- create(ConsPStack<String>) - Static method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Violation
- createAnalyzer(ScannerSupplier, ErrorProneOptions, Context, RefactoringCollection[]) - Static method in class com.google.errorprone.ErrorProneAnalyzer
- createByScanningForPlugins(ScannerSupplier, ErrorProneOptions, Context) - Static method in class com.google.errorprone.ErrorProneAnalyzer
- createCollector() - Static method in interface com.google.errorprone.StatisticsCollector
-
Returns a new statistics collector that will successfully count keys added to it.
- createConfiguredForCompilation(Context, DescriptionListener, Map<String, BugPattern.SeverityLevel>, ErrorProneOptions) - Static method in class com.google.errorprone.VisitorState
-
Return a VisitorState configured for a new compilation, including Error Prone configuration.
- createForCustomFindingCollection(Context, DescriptionListener) - Static method in class com.google.errorprone.VisitorState
-
Return a VisitorState that has no Error Prone configuration, but can report findings to
listener
. - createForUtilityPurposes(Context) - Static method in class com.google.errorprone.VisitorState
-
Return a VisitorState that has no Error Prone configuration, and can't report results.
- createIgnoringOverlaps(JCTree.JCCompilationUnit, ImportOrganizer) - Static method in class com.google.errorprone.apply.DescriptionBasedDiff
- createInliner() - Method in class com.google.errorprone.refaster.TemplateMatch
- createInliner() - Method in class com.google.errorprone.refaster.Unifier
- createNoOpCollector() - Static method in interface com.google.errorprone.StatisticsCollector
-
Returns a statistics collector that will ignore any statistics added to it, always returning an empty result for
StatisticsCollector.counters()
. - createPrivateConstructor(ClassTree) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns a no arg private constructor for the
ClassTree
. - createTemplate(Context, MethodTree) - Static method in class com.google.errorprone.refaster.UTemplater
-
Returns a template based on a method.
- CUSTOM - Enum constant in enum com.google.errorprone.BugPattern.LinkType
-
Custom string.
- customSuppressionAnnotations() - Method in class com.google.errorprone.BugCheckerInfo
- customSuppressionAnnotations() - Method in class com.google.errorprone.bugpatterns.BugChecker
- customSuppressionAnnotations() - Method in interface com.google.errorprone.matchers.Suppressible
-
Returns the custom suppression annotations for this checker, if custom suppression is used.
D
- @DoNotCall and deprecation - Search tag in annotation type com.google.errorprone.annotations.DoNotCall
- Section
- DAGGER_MAP_KEY_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
- DAGGER_PROVIDES_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
- DaggerAnnotations - Class in com.google.errorprone.bugpatterns.inject.dagger
-
A utility class for static analysis having to do with Dagger annotations.
- DaggerRules - Class in com.google.errorprone.bugpatterns.checkreturnvalue
-
Rules for methods on Dagger
Component.Builder
andSubcomponent.Builder
types. - DangerousLiteralNullChecker - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - DangerousLiteralNullChecker() - Constructor for class com.google.errorprone.bugpatterns.DangerousLiteralNullChecker
- DataFlow - Class in com.google.errorprone.dataflow
-
Provides a wrapper around
Analysis
. - DataFlow.Result<A,
S, - Interface in com.google.errorprone.dataflowT> -
A pair of Analysis and ControlFlowGraph.
- DATE - Enum constant in enum com.google.errorprone.bugpatterns.TypesWithUndefinedEquality
- DateChecker - Class in com.google.errorprone.bugpatterns.time
-
Warns against suspect looking calls to
Date
APIs. - DateChecker() - Constructor for class com.google.errorprone.bugpatterns.time.DateChecker
- DateFormatConstant - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - DateFormatConstant() - Constructor for class com.google.errorprone.bugpatterns.DateFormatConstant
- DeadException - Class in com.google.errorprone.bugpatterns
- DeadException() - Constructor for class com.google.errorprone.bugpatterns.DeadException
- DeadThread - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - DeadThread() - Constructor for class com.google.errorprone.bugpatterns.DeadThread
- debugPrint() - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression
- deducedValueWhenNotEqual() - Method in enum com.google.errorprone.dataflow.nullnesspropagation.Nullness
-
Returns the
Nullness
that corresponds to what you can deduce by knowing that some expression is not equal to another expression with thisNullness
. - DeduplicateConstants - Class in com.google.errorprone.bugpatterns
-
A checker that suggests deduplicating literals with existing constant variables.
- DeduplicateConstants() - Constructor for class com.google.errorprone.bugpatterns.DeduplicateConstants
- DeeplyNested - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - DEFAULT - Enum constant in enum com.google.errorprone.annotations.Modifier
- DEFAULT - Enum constant in enum com.google.errorprone.ErrorProneOptions.Severity
- DEFAULT - Enum constant in enum com.google.errorprone.matchers.MethodVisibility.Visibility
- defaultAction(Tree, ControlFlowVisitor.BreakContext) - Method in class com.google.errorprone.refaster.ControlFlowVisitor
- defaultAction(Tree, Unifier) - Method in class com.google.errorprone.refaster.UAnyOf
- defaultAction(Tree, Unifier) - Method in class com.google.errorprone.refaster.UFreeIdent
- defaultAction(Tree, Unifier) - Method in class com.google.errorprone.refaster.UMethodIdent
- defaultAction(Tree, Unifier) - Method in class com.google.errorprone.refaster.UPlaceholderExpression
- defaultAction(Tree, Unifier) - Method in class com.google.errorprone.refaster.UStaticIdent
- defaultAction(Tree, Unifier) - Method in class com.google.errorprone.refaster.UTree
- defaultAction(Tree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- DefaultCharset - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - defaultChecks() - Static method in class com.google.errorprone.scanner.BuiltInCheckerSuppliers
-
Returns a
ScannerSupplier
with theBugChecker
s that are in the ENABLED lists. - DefaultLocale - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - DefaultLocale() - Constructor for class com.google.errorprone.bugpatterns.DefaultLocale
- DefaultPackage - Class in com.google.errorprone.bugpatterns
-
Java classes shouldn't use default package.
- DefaultPackage() - Constructor for class com.google.errorprone.bugpatterns.DefaultPackage
- defaultSeverity() - Method in class com.google.errorprone.BugCheckerInfo
- defaultSeverity() - Method in class com.google.errorprone.bugpatterns.BugChecker
- DEFINED_IN - Enum constant in enum com.google.errorprone.matchers.method.MethodInvocationMatcher.TokenType
- DefinedIn() - Constructor for class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.DefinedIn
- delegate() - Method in class com.google.errorprone.refaster.Bindings
- delete(Tree) - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
- delete(Tree) - Static method in class com.google.errorprone.fixes.SuggestedFix
- deleteExceptions(MethodTree, VisitorState, List<ExpressionTree>) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Deletes the given exceptions from a method's throws clause.
- DepAnn - Class in com.google.errorprone.bugpatterns
-
Matches the behaviour of the javac dep-ann Xlint warning.
- DepAnn() - Constructor for class com.google.errorprone.bugpatterns.DepAnn
- DeprecatedVariable - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - DeprecatedVariable() - Constructor for class com.google.errorprone.bugpatterns.DeprecatedVariable
- DereferenceWithNullBranch - Class in com.google.errorprone.bugpatterns.nullness
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - DereferenceWithNullBranch() - Constructor for class com.google.errorprone.bugpatterns.nullness.DereferenceWithNullBranch
- DescendantOf - Class in com.google.errorprone.predicates.type
-
Matches sub-types of the given type.
- DescendantOf(Supplier<Type>) - Constructor for class com.google.errorprone.predicates.type.DescendantOf
- DescendantOfAny - Class in com.google.errorprone.predicates.type
-
Matches types that are a sub-type of one of the given types.
- DescendantOfAny(Iterable<Supplier<Type>>) - Constructor for class com.google.errorprone.predicates.type.DescendantOfAny
- descending() - Method in class com.google.errorprone.fixes.Replacements
-
Deprecated.
- describe() - Method in class com.google.errorprone.DiagnosticTestHelper
- describe(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.PreconditionsInvalidPlaceholder
- describe(Tree, ThreadSafety.Violation) - Method in interface com.google.errorprone.bugpatterns.threadsafety.ImmutableAnalysis.ViolationReporter
- describeForAssignment(AssignmentTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.SelfAssignment
-
We expect that the lhs is a field and the rhs is an identifier, specifically a parameter to the method.
- describeForVarDecl(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.SelfAssignment
- describeMatch(Tree) - Method in class com.google.errorprone.bugpatterns.BugChecker
-
Helper to create a Description for the common case where there is no fix.
- describeMatch(Tree, Fix) - Method in class com.google.errorprone.bugpatterns.BugChecker
-
Helper to create a Description for the common case where there is a fix.
- describeMatch(JCTree) - Method in class com.google.errorprone.bugpatterns.BugChecker
-
Helper to create a Description for the common case where there is no fix.
- describeMatch(JCTree, Fix) - Method in class com.google.errorprone.bugpatterns.BugChecker
-
Helper to create a Description for the common case where there is a fix.
- describeMatch(JCDiagnostic.DiagnosticPosition) - Method in class com.google.errorprone.bugpatterns.BugChecker
-
Helper to create a Description for the common case where there is no fix.
- describeMatch(JCDiagnostic.DiagnosticPosition, Fix) - Method in class com.google.errorprone.bugpatterns.BugChecker
-
Helper to create a Description for the common case where there is a fix.
- describeReturnValueIgnored(MemberReferenceTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractReturnValueIgnored
-
Uses the default description for results ignored via a method reference.
- describeReturnValueIgnored(MemberReferenceTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CheckReturnValue
- describeReturnValueIgnored(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractReturnValueIgnored
-
Fixes the error by assigning the result of the call to the receiver reference, or deleting the method call.
- describeReturnValueIgnored(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.android.RectIntersectReturnValueIgnored
- describeReturnValueIgnored(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CheckReturnValue
- describeReturnValueIgnored(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.IgnoredPureGetter
- describeReturnValueIgnored(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractReturnValueIgnored
-
Uses the default description for results ignored via a constructor call.
- describeReturnValueIgnored(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CheckReturnValue
- description() - Method in enum com.google.errorprone.util.Visibility
-
A fragment describing this visibility, to fit in a phrase like "restricted to [...]".
- Description - Class in com.google.errorprone.matchers
-
Simple data object containing the information captured about an AST match.
- Description.Builder - Class in com.google.errorprone.matchers
-
Builder for
Description
s. - DescriptionBasedDiff - Class in com.google.errorprone.apply
-
Implementation of a
Diff
that performs the modifications that are passed to itsDescriptionBasedDiff.onDescribed(com.google.errorprone.matchers.Description)
method, with no formatting. - DescriptionListener - Interface in com.google.errorprone
-
Strategies for reporting results.
- DescriptionListener.Factory - Interface in com.google.errorprone
-
Factory for creating DescriptionListeners while compiling each file.
- descriptionMessageForDefaultMatch(Type, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractToString
-
Adds the description message for match on the type without fixes.
- descriptionMessageForDefaultMatch(Type, VisitorState) - Method in class com.google.errorprone.bugpatterns.LiteProtoToString
- descriptionMessageForDefaultMatch(Type, VisitorState) - Method in class com.google.errorprone.bugpatterns.ObjectToString
- descriptionMessageForDefaultMatch(Type, VisitorState) - Method in class com.google.errorprone.bugpatterns.SymbolToString
- descriptionMessageForDefaultMatch(Type, VisitorState) - Method in class com.google.errorprone.bugpatterns.TreeToString
- descriptionMessageForDefaultMatch(Type, VisitorState) - Method in class com.google.errorprone.bugpatterns.TypeToString
- descriptor() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiff.ClassMemberKey
-
The JVMS 4.3 member descriptor.
- descriptor(Type, VisitorState) - Static method in class com.google.errorprone.util.Signatures
-
Returns a JVMS 4.3.3 method descriptor.
- DIAGNOSTIC_CONTAINING - Static variable in class com.google.errorprone.DiagnosticTestHelper
- diagnosticOnLine(URI, long) - Static method in class com.google.errorprone.DiagnosticTestHelper
- diagnosticOnLine(URI, long, Predicate<? super String>) - Static method in class com.google.errorprone.DiagnosticTestHelper
- diagnostics() - Method in class com.google.errorprone.fixes.SuggestedFixes.FixCompiler.Result
- DiagnosticTestHelper - Class in com.google.errorprone
-
Utility class for tests which need to assert on the diagnostics produced during compilation.
- DiagnosticTestHelper() - Constructor for class com.google.errorprone.DiagnosticTestHelper
-
Construct a
DiagnosticTestHelper
not associated with a specific check. - DiagnosticTestHelper(String) - Constructor for class com.google.errorprone.DiagnosticTestHelper
-
Construct a
DiagnosticTestHelper
for a check with the given name. - Diff - Interface in com.google.errorprone.apply
-
All the differences to be applied to a source file to be applied in a refactoring.
- DIFF_NOT_SET - Enum constant in enum com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.DiffCase
- DiffApplier - Class in com.google.errorprone.apply
-
Applier of diffs to Java source code
- DiffApplier(int, FileSource, FileDestination) - Constructor for class com.google.errorprone.apply.DiffApplier
- DifferentNameButSame - Class in com.google.errorprone.bugpatterns
-
Discourages using multiple names to refer to the same type within a file (e.g.
- DifferentNameButSame() - Constructor for class com.google.errorprone.bugpatterns.DifferentNameButSame
- DiffSupplier - Interface in com.google.errorprone.apply
-
Supplier of file differences.
- DirectInvocationOnMock - Class in com.google.errorprone.bugpatterns
-
A bugpattern; see the description.
- DirectInvocationOnMock() - Constructor for class com.google.errorprone.bugpatterns.DirectInvocationOnMock
- disableable() - Method in class com.google.errorprone.BugCheckerInfo
- disableable() - Element in annotation type com.google.errorprone.BugPattern
-
True if the check can be disabled using command-line flags.
- disableable() - Method in class com.google.errorprone.bugpatterns.BugChecker
- disabled() - Method in class com.google.errorprone.scanner.ScannerSupplier
- DISABLED_CHECKS - Static variable in class com.google.errorprone.scanner.BuiltInCheckerSuppliers
-
A list of all checks that are off by default.
- disableWarningsInGeneratedCode() - Method in class com.google.errorprone.ErrorProneOptions
- DiscardedPostfixExpression - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - DiscardedPostfixExpression() - Constructor for class com.google.errorprone.bugpatterns.DiscardedPostfixExpression
- DiscardingFileDestination - Class in com.google.errorprone.apply
-
File destination which simply throws away the generated file.
- DiscardingFileDestination() - Constructor for class com.google.errorprone.apply.DiscardingFileDestination
- DistinctVarargsChecker - Class in com.google.errorprone.bugpatterns
-
ErrorProne checker to generate warning when method expecting distinct varargs is invoked with same variable argument.
- DistinctVarargsChecker() - Constructor for class com.google.errorprone.bugpatterns.DistinctVarargsChecker
- DocGenProcessor - Class in com.google.errorprone
-
Annotation processor which visits all classes that have a
BugPattern
annotation, and writes a tab-delimited text file dumping the data found. - DocGenProcessor() - Constructor for class com.google.errorprone.DocGenProcessor
- DocGenTool - Class in com.google.errorprone
-
Utility main which consumes the same tab-delimited text file and generates GitHub pages for the BugPatterns.
- DocGenTool.TargetEnumConverter - Class in com.google.errorprone
- documentSuppression - Variable in class com.google.errorprone.BugPatternInstance
- documentSuppression() - Element in annotation type com.google.errorprone.BugPattern
-
Generate an explanation of how to suppress the check.
- doesNotHaveArgument(String) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an Annotation AST node if an argument to the annotation does not exist.
- doesNotHaveRuntimeRetention(Element) - Static method in class com.google.errorprone.bugpatterns.inject.ElementPredicates
- DoNotCall - Annotation Type in com.google.errorprone.annotations
-
Indicates that the annotated method should not be called under any normal circumstances, yet is either impossible to remove, or should not ever be removed.
- DoNotCallChecker - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - DoNotCallChecker() - Constructor for class com.google.errorprone.bugpatterns.DoNotCallChecker
- DoNotCallSuggester - Class in com.google.errorprone.bugpatterns
-
If a method always throws an exception, consider annotating it with
@DoNotCall
to prevent calls at compile-time instead failing at runtime. - DoNotCallSuggester() - Constructor for class com.google.errorprone.bugpatterns.DoNotCallSuggester
- DoNotClaimAnnotations - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - DoNotClaimAnnotations() - Constructor for class com.google.errorprone.bugpatterns.DoNotClaimAnnotations
- DoNotMock - Annotation Type in com.google.errorprone.annotations
-
Annotation representing a type that should not be mocked.
- DoNotMockAutoValue - Class in com.google.errorprone.bugpatterns
-
Suggests not mocking AutoValue classes.
- DoNotMockAutoValue() - Constructor for class com.google.errorprone.bugpatterns.DoNotMockAutoValue
- DoNotMockChecker - Class in com.google.errorprone.bugpatterns
-
Points out if a Mockito or EasyMock mock is mocking an object that would be better off being tested using an alternative instance.
- DoNotMockChecker() - Constructor for class com.google.errorprone.bugpatterns.DoNotMockChecker
- doStart() - Method in class com.google.errorprone.apply.DiffApplier
- doStop() - Method in class com.google.errorprone.apply.DiffApplier
- doTest() - Method in class com.google.errorprone.BugCheckerRefactoringTestHelper
- doTest() - Method in class com.google.errorprone.CompilationTestHelper
-
Performs a compilation and checks that the diagnostics and result match the expectations.
- doTest(BugCheckerRefactoringTestHelper.TestMode) - Method in class com.google.errorprone.BugCheckerRefactoringTestHelper
- DOUBLE_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
- DoubleBraceInitialization - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - DoubleBraceInitialization() - Constructor for class com.google.errorprone.bugpatterns.DoubleBraceInitialization
- DoubleCheckedLocking - Class in com.google.errorprone.bugpatterns.threadsafety
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - DoubleCheckedLocking() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.DoubleCheckedLocking
- doubleLit(double) - Static method in class com.google.errorprone.refaster.ULiteral
- DuplicateBranches - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - DuplicateBranches() - Constructor for class com.google.errorprone.bugpatterns.DuplicateBranches
- DuplicateDateFormatField - Class in com.google.errorprone.bugpatterns
-
Flag DateFormats which use the same field more than once.
- DuplicateDateFormatField() - Constructor for class com.google.errorprone.bugpatterns.DuplicateDateFormatField
- DuplicateMapKeys - Class in com.google.errorprone.bugpatterns
-
Flags duplicate keys used in ImmutableMap construction.
- DuplicateMapKeys() - Constructor for class com.google.errorprone.bugpatterns.DuplicateMapKeys
- DurationFrom - Class in com.google.errorprone.bugpatterns.time
- DurationFrom() - Constructor for class com.google.errorprone.bugpatterns.time.DurationFrom
- DurationGetTemporalUnit - Class in com.google.errorprone.bugpatterns.time
-
Bans calls to
Duration.get(temporalUnit)
wheretemporalUnit
is notSECONDS
orNANOS
. - DurationGetTemporalUnit() - Constructor for class com.google.errorprone.bugpatterns.time.DurationGetTemporalUnit
- DurationTemporalUnit - Class in com.google.errorprone.bugpatterns.time
-
Bans calls to
Duration
APIs where theTemporalUnit
is notChronoUnit.DAYS
or it has an estimated duration (which is guaranteed to throw anDateTimeException
). - DurationTemporalUnit() - Constructor for class com.google.errorprone.bugpatterns.time.DurationTemporalUnit
- DurationToLongTimeUnit - Class in com.google.errorprone.bugpatterns.time
-
Reports an error when a Duration or Instant is incorrectly decomposed in order to call an API which accepts a
<long, TimeUnit>
pair. - DurationToLongTimeUnit() - Constructor for class com.google.errorprone.bugpatterns.time.DurationToLongTimeUnit
E
- element() - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule.Evaluation
-
The specific element in the scope for which the evaluation was made.
- ElementPredicates - Class in com.google.errorprone.bugpatterns.inject
-
Predicates for
Element
objects related to dependency injection. - emitComment(String) - Static method in class com.google.errorprone.refaster.Refaster
-
This is a special method to emit a one-line comment.
- emitCommentBefore(String, T) - Static method in class com.google.errorprone.refaster.Refaster
-
This is a special method to emit a comment before an expression.
- empty() - Static method in class com.google.errorprone.dataflow.AccessPathStore
- empty() - Static method in class com.google.errorprone.ErrorProneFlags
- empty() - Static method in class com.google.errorprone.ErrorProneOptions
- EMPTY - Static variable in class com.google.errorprone.SuppressionInfo
- EmptyBlockTag - Class in com.google.errorprone.bugpatterns.javadoc
-
Matches block tags (@param, @return, @throws, @deprecated) with an empty description.
- EmptyBlockTag() - Constructor for class com.google.errorprone.bugpatterns.javadoc.EmptyBlockTag
- EmptyCatch - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - EmptyCatch() - Constructor for class com.google.errorprone.bugpatterns.EmptyCatch
- emptyFix() - Static method in class com.google.errorprone.fixes.SuggestedFix
-
Creates an empty
SuggestedFix
. - EmptyIfStatement - Class in com.google.errorprone.bugpatterns
-
This checker finds and fixes empty statements after an if, with no else part.
- EmptyIfStatement() - Constructor for class com.google.errorprone.bugpatterns.EmptyIfStatement
- EmptySetMultibindingContributions - Class in com.google.errorprone.bugpatterns.inject.dagger
- EmptySetMultibindingContributions() - Constructor for class com.google.errorprone.bugpatterns.inject.dagger.EmptySetMultibindingContributions
- EmptyTopLevelDeclaration - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - EmptyTopLevelDeclaration() - Constructor for class com.google.errorprone.bugpatterns.EmptyTopLevelDeclaration
- enabled() - Method in class com.google.errorprone.scanner.ScannerSupplier
- ENABLED_ERRORS - Static variable in class com.google.errorprone.scanner.BuiltInCheckerSuppliers
-
A list of all checks with severity ERROR that are on by default.
- ENABLED_WARNINGS - Static variable in class com.google.errorprone.scanner.BuiltInCheckerSuppliers
-
A list of all checks with severity WARNING that are on by default.
- Enclosing - Class in com.google.errorprone.matchers
-
Adapt matchers to match against a parent node of a given type.
- ENCLOSING_CLASS - Static variable in class com.google.errorprone.suppliers.Suppliers
- ENCLOSING_ELEMENTS - Enum constant in enum com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule.RuleScope
-
Classes and package that enclose a method for which a
ResultUsePolicy
is being chosen. - Enclosing.Block<T> - Class in com.google.errorprone.matchers
- Enclosing.BlockOrCase<T> - Class in com.google.errorprone.matchers
- Enclosing.Class<T> - Class in com.google.errorprone.matchers
- Enclosing.Method<T> - Class in com.google.errorprone.matchers
- enclosingBlock(Matcher<BlockTree>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node which is enclosed by a block node that matches the given matcher.
- enclosingClass() - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedBySymbolResolver
- enclosingClass(Matcher<ClassTree>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node which is enclosed by a class node that matches the given matcher.
- enclosingClass(Symbol) - Static method in class com.google.errorprone.util.ASTHelpers
-
Return the enclosing
ClassSymbol
of the given symbol, ornull
. - enclosingElements(Symbol) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns a stream of the owner hierarchy starting from
sym
, as described bySymbol.owner
. - enclosingMethod(Matcher<MethodTree>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node which is enclosed by a method node that matches the given matcher.
- enclosingNode(Matcher<Tree>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node that is enclosed by some node that matches the given matcher.
- enclosingPackage(Symbol) - Static method in class com.google.errorprone.util.ASTHelpers
-
Return the enclosing
PackageSymbol
of the given symbol, ornull
. - endPos() - Method in class com.google.errorprone.util.ErrorProneToken
- endPosition() - Method in class com.google.errorprone.fixes.Replacement
-
The end of the replacement range, exclusive.
- endPositionAdjustment - Variable in class com.google.errorprone.fixes.AdjustedPosition
- enhancedForLoop(Matcher<VariableTree>, Matcher<ExpressionTree>, Matcher<StatementTree>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an enhanced for loop if all the given matchers match.
- enter() - Method in class com.google.errorprone.refaster.Inliner
- EnumOrdinal - Class in com.google.errorprone.bugpatterns
-
Discourages the use of
Enum.ordinal()
and other ways to access enum values by index. - EnumOrdinal() - Constructor for class com.google.errorprone.bugpatterns.EnumOrdinal
- enumValueOf(String) - Static method in class com.google.errorprone.refaster.Refaster
-
This is a placeholder for the expression E.valueOf(string).
- enumValues(Symbol.TypeSymbol) - Static method in class com.google.errorprone.util.ASTHelpers
- EQUALITY - Enum constant in enum com.google.errorprone.util.OperatorPrecedence
- equals(Object) - Method in class com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions.ConstantEquals
- equals(Object) - Method in class com.google.errorprone.refaster.Bindings.Key
- equals(Object) - Method in class com.google.errorprone.refaster.UTypeVar
- equals(Object) - Method in class com.google.errorprone.BugCheckerInfo
- equals(Object) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
- equals(Object) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
- equals(Object) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
- equals(Object) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
- equals(Object) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
- equals(Object) - Method in class com.google.errorprone.bugpatterns.BugChecker
- EqualsBrokenForNull - Class in com.google.errorprone.bugpatterns.nullness
-
BugChecker
adds a null check toequals()
method implementations which don't satisfy the null contract ofObject.equals(java.lang.Object)
i.e. - EqualsBrokenForNull() - Constructor for class com.google.errorprone.bugpatterns.nullness.EqualsBrokenForNull
- EqualsGetClass - Class in com.google.errorprone.bugpatterns
-
Discourages the use of
Object.getClass()
when implementingObject.equals(Object)
for non-final classes. - EqualsGetClass() - Constructor for class com.google.errorprone.bugpatterns.EqualsGetClass
- EqualsHashCode - Class in com.google.errorprone.bugpatterns
-
Classes that override
Object.equals(java.lang.Object)
should also overrideObject.hashCode()
. - EqualsHashCode() - Constructor for class com.google.errorprone.bugpatterns.EqualsHashCode
- EqualsIncompatibleType - Class in com.google.errorprone.bugpatterns
- equalsMethodDeclaration() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches
Object.equals(java.lang.Object)
method declaration. - EqualsMissingNullable - Class in com.google.errorprone.bugpatterns.nullness
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - EqualsNaN - Class in com.google.errorprone.bugpatterns
- EqualsNaN() - Constructor for class com.google.errorprone.bugpatterns.EqualsNaN
- EqualsNull - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - EqualsNull() - Constructor for class com.google.errorprone.bugpatterns.EqualsNull
- EqualsReference - Class in com.google.errorprone.bugpatterns
- EqualsReference() - Constructor for class com.google.errorprone.bugpatterns.EqualsReference
- EqualsUnsafeCast - Class in com.google.errorprone.bugpatterns
-
Checks for
equals
implementations making unsafe casts. - EqualsUnsafeCast() - Constructor for class com.google.errorprone.bugpatterns.EqualsUnsafeCast
- EqualsUsingHashCode - Class in com.google.errorprone.bugpatterns
-
Discourages implementing
equals
usinghashCode
. - EqualsUsingHashCode() - Constructor for class com.google.errorprone.bugpatterns.EqualsUsingHashCode
- EqualsWrongThing - Class in com.google.errorprone.bugpatterns
-
Checks for
equals
implementations comparing non-corresponding fields. - EqualsWrongThing() - Constructor for class com.google.errorprone.bugpatterns.EqualsWrongThing
- ErroneousBitwiseExpression - Class in com.google.errorprone.bugpatterns
-
A BugPattern; see the summary.
- ErroneousBitwiseExpression() - Constructor for class com.google.errorprone.bugpatterns.ErroneousBitwiseExpression
- ErroneousThreadPoolConstructorChecker - Class in com.google.errorprone.bugpatterns
-
ErrorProne checker to generate warning whenever
ThreadPoolExecutor
is constructed with differentcorePoolSize
andmaximumPoolSize
using an unboundedworkQueue
- ErroneousThreadPoolConstructorChecker() - Constructor for class com.google.errorprone.bugpatterns.ErroneousThreadPoolConstructorChecker
- ERROR - Enum constant in enum com.google.errorprone.BugPattern.SeverityLevel
- ERROR - Enum constant in enum com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.Kind
- ERROR - Enum constant in enum com.google.errorprone.ErrorProneOptions.Severity
- errorChecks() - Static method in class com.google.errorprone.scanner.BuiltInCheckerSuppliers
-
Returns a
ScannerSupplier
with theBugChecker
s that are in the ENABLED_ERRORS list. - ErrorMessages - Class in com.google.errorprone.bugpatterns.checkreturnvalue
-
Error messages used by
CheckReturnValue
. - ErrorProneAnalyzer - Class in com.google.errorprone
-
A
TaskListener
that runs Error Prone over attributed compilation units. - ErrorProneAnalyzer.RefactoringTask - Class in com.google.errorprone
-
A
TaskListener
that performs refactorings. - ErrorProneComment - Class in com.google.errorprone.util
-
Wraps a
Tokens.Comment
to allow an offset source position to be reported. - ErrorProneComment.ErrorProneCommentStyle - Enum in com.google.errorprone.util
-
A compatibility wrapper for
Tokens.Comment.CommentStyle
. - ErrorProneError - Exception Class in com.google.errorprone
-
Wraps an unrecoverable error that occurs during analysis with the source position that triggered the crash.
- ErrorProneError(String, Throwable, JCDiagnostic.DiagnosticPosition, JavaFileObject) - Constructor for exception class com.google.errorprone.ErrorProneError
- ErrorProneFlags - Class in com.google.errorprone
-
Represents an immutable map of Error Prone flags to their set values.
- ErrorProneFlags.Builder - Class in com.google.errorprone
-
Builder for Error Prone command-line flags object.
- ErrorProneInjector - Class in com.google.errorprone.scanner
-
An injector for ErrorProne.
- ErrorProneInjector() - Constructor for class com.google.errorprone.scanner.ErrorProneInjector
- ErrorProneInjector.ProvisionException - Exception Class in com.google.errorprone.scanner
-
Indicates that there was a runtime failure while providing an instance.
- ErrorProneJavaCompiler - Class in com.google.errorprone
-
An Error Prone compiler that implements
JavaCompiler
. - ErrorProneJavaCompiler() - Constructor for class com.google.errorprone.ErrorProneJavaCompiler
- ErrorProneJavaCompiler(ScannerSupplier) - Constructor for class com.google.errorprone.ErrorProneJavaCompiler
- ErrorProneJavacPlugin - Class in com.google.errorprone
-
A javac
Plugin
that runs Error Prone. - ErrorProneJavacPlugin() - Constructor for class com.google.errorprone.ErrorProneJavacPlugin
- errorProneOptions() - Method in class com.google.errorprone.VisitorState
- ErrorProneOptions - Class in com.google.errorprone
-
Processes command-line options specific to error-prone.
- ErrorProneOptions.Severity - Enum in com.google.errorprone
-
Severity levels for an error-prone check that define how the check results should be presented.
- ErrorPronePlugins - Class in com.google.errorprone
-
Loads custom Error Prone checks from the annotation processor classpath.
- ErrorProneScanner - Class in com.google.errorprone.scanner
-
Scans the parsed AST, looking for violations of any of the enabled checks.
- ErrorProneScanner(BugChecker...) - Constructor for class com.google.errorprone.scanner.ErrorProneScanner
-
Create an error-prone scanner for the given checkers.
- ErrorProneScanner(Iterable<BugChecker>) - Constructor for class com.google.errorprone.scanner.ErrorProneScanner
-
Create an error-prone scanner for a non-hardcoded set of checkers.
- ErrorProneScanner(Iterable<BugChecker>, Map<String, BugPattern.SeverityLevel>) - Constructor for class com.google.errorprone.scanner.ErrorProneScanner
-
Create an error-prone scanner for a non-hardcoded set of checkers.
- ErrorProneScannerTransformer - Class in com.google.errorprone.scanner
-
Adapter from an
ErrorProneScanner
to aCodeTransformer
. - ErrorProneScannerTransformer() - Constructor for class com.google.errorprone.scanner.ErrorProneScannerTransformer
- ErrorProneScope - Class in com.google.errorprone.util
-
A compatibility wrapper around
com.sun.tools.javac.util.Filter
- ErrorProneTimings - Class in com.google.errorprone
-
A collection of timing data for the runtime of individual checks.
- ErrorProneToken - Class in com.google.errorprone.util
-
Wraps a javac
Tokens.Token
to return comments in declaration order. - ErrorProneTokens - Class in com.google.errorprone.util
-
A utility for tokenizing and preserving comments.
- ErrorProneTokens(String, int, Context) - Constructor for class com.google.errorprone.util.ErrorProneTokens
- ErrorProneTokens(String, Context) - Constructor for class com.google.errorprone.util.ErrorProneTokens
- ErrorProneVersion - Class in com.google.errorprone
-
The Error Prone version.
- EscapedEntity - Class in com.google.errorprone.bugpatterns.javadoc
-
Finds unescaped entities in Javadocs.
- EscapedEntity() - Constructor for class com.google.errorprone.bugpatterns.javadoc.EscapedEntity
- evaluate(ResultUseRule.RuleScope, S, C) - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule
-
Evaluates the given symbol and optionally returns an
ResultUseRule.Evaluation
of it. - evaluate(Symbol, VisitorState) - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.PackagesRule
- evaluate(M, C) - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicyEvaluator
-
Evaluates the given
method
and returns a singleResultUsePolicy
that should apply to it. - evaluate(S, C) - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule
-
Evaluates the given
symbol
and optionally returns aResultUsePolicy
for it. - evaluate(S, C) - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule.MethodRule
- evaluateMethod(Symbol.MethodSymbol, VisitorState) - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.ExternalCanIgnoreReturnValue
- evaluateMethod(M, C) - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule.MethodRule
-
Evaluates the given
method
and optionally returns aResultUsePolicy
for it. - Evaluation() - Constructor for class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule.Evaluation
- evaluations(M, C) - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicyEvaluator
-
Returns a stream of
ResultUseRule.Evaluation
s made by rules starting from the givenmethod
. - EVERYTHING_DIFF - Enum constant in enum com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.DiffCase
- EVERYTHING_DIFF_FIELD_NUMBER - Static variable in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
- Exact - Class in com.google.errorprone.predicates.type
-
Matches types that exactly match the given type.
- Exact(Supplier<Type>) - Constructor for class com.google.errorprone.predicates.type.Exact
- ExactAny - Class in com.google.errorprone.predicates.type
-
Matches types that exactly match one of the given types.
- ExactAny(Iterable<Supplier<Type>>) - Constructor for class com.google.errorprone.predicates.type.ExactAny
- EXCEPTION_TESTING - Enum constant in enum com.google.errorprone.matchers.UnusedReturnValueMatcher.AllowReason
-
The context is one in which the method is probably being called to test for an exception it throws.
- EXCEPTION_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
- exemptChange(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractMustBeClosedChecker
- EXISTING_FIRST - Enum constant in enum com.google.errorprone.fixes.Replacements.CoalescePolicy
-
Accept overlapping insertions, with the existing insertion before the new one.
- expected - Variable in class com.google.errorprone.predicates.type.DescendantOf
- EXPECTED - Enum constant in enum com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicy
-
Use of the result is expected except in certain contexts where the method is being used in a way such that not using the result is likely correct.
- ExpectedExceptionChecker - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - ExpectedExceptionChecker() - Constructor for class com.google.errorprone.bugpatterns.ExpectedExceptionChecker
- expectedExceptionTest(VisitorState) - Static method in class com.google.errorprone.matchers.UnusedReturnValueMatcher
-
Allow return values to be ignored in tests that expect an exception to be thrown.
- expectedTypes(Inliner) - Method in class com.google.errorprone.refaster.Template
-
Returns a list of the expected types to be matched.
- expectErrorMessage(String, Predicate<? super String>) - Method in class com.google.errorprone.CompilationTestHelper
-
Expects an error message matching
matcher
at the line below a comment matching the key. - expectErrorMessage(String, Predicate<? super String>) - Method in class com.google.errorprone.DiagnosticTestHelper
-
Expects an error message matching
matcher
at the line below a comment matching the key. - expectNoDiagnostics() - Method in class com.google.errorprone.CompilationTestHelper
-
Tells the compilation helper to expect that no diagnostics will be generated, even if the source file contains bug markers.
- expectResult(Main.Result) - Method in class com.google.errorprone.CompilationTestHelper
-
Tells the compilation helper to expect a specific result from the compilation, e.g.
- expectUnchanged() - Method in class com.google.errorprone.BugCheckerRefactoringTestHelper.ExpectOutput
- explanation - Variable in class com.google.errorprone.BugPatternInstance
- explanation() - Element in annotation type com.google.errorprone.annotations.RestrictedApi
-
Explanation why the API is restricted, to be inserted into the compiler output.
- explanation() - Element in annotation type com.google.errorprone.BugPattern
-
A longer explanation of the problem that this checker detects.
- expressionArgumentTypes() - Method in class com.google.errorprone.refaster.Template
- expressionDataflow(TreePath, Context, T) - Static method in class com.google.errorprone.dataflow.DataFlow
-
Runs the
transfer
dataflow analysis to compute the abstract value of the expression which is the leaf ofexprPath
. - expressionStatement(Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an
ExpressionStatementTree
based on itsExpressionTree
. - ExpressionTemplate - Class in com.google.errorprone.refaster
-
Implementation of a template to match and replace an expression anywhere in an AST.
- ExpressionTemplate() - Constructor for class com.google.errorprone.refaster.ExpressionTemplate
- ExtendingJUnitAssert - Class in com.google.errorprone.bugpatterns
- ExtendingJUnitAssert() - Constructor for class com.google.errorprone.bugpatterns.ExtendingJUnitAssert
- ExtendsAutoValue - Class in com.google.errorprone.bugpatterns
-
Makes sure that you are not extending a class that has @AutoValue as an annotation.
- ExtendsObject - Class in com.google.errorprone.bugpatterns.nullness
-
A bugpattern: see the summary.
- ExtendsObject() - Constructor for class com.google.errorprone.bugpatterns.nullness.ExtendsObject
- ExternalCanIgnoreReturnValue - Class in com.google.errorprone.bugpatterns.checkreturnvalue
-
External source of information about @CanIgnoreReturnValue-equivalent API's.
- externalIgnoreList() - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.ExternalCanIgnoreReturnValue
-
Returns a rule using an external list of APIs to ignore.
- extract(T, VisitorState) - Method in interface com.google.errorprone.bugpatterns.AbstractMockChecker.TypeExtractor
-
Investigate the provided Tree, and return type information about it if it matches.
- extractClassArg(Matcher<MethodInvocationTree>) - Static method in class com.google.errorprone.bugpatterns.AbstractMockChecker
-
Produces an extractor which, if the tree matches, extracts the type of the first argument whose type is
Class
(preserving its<T>
type parameter, if it has one}. - extractFirstArg(Matcher<MethodInvocationTree>) - Static method in class com.google.errorprone.bugpatterns.AbstractMockChecker
-
Produces an extractor which, if the tree matches, extracts the type of the first argument to the method invocation.
- extractRules(ClassTree, Context) - Static method in class com.google.errorprone.refaster.RefasterRuleBuilderScanner
- extractType(Matcher<T>) - Static method in class com.google.errorprone.bugpatterns.AbstractMockChecker
-
Produces an extractor which, if the tree matches, extracts the type of that tree, as given by
ASTHelpers.getType(Tree)
. - extractTypeArgAsMemberOfSupertype(Type, Symbol, int, Types) - Static method in class com.google.errorprone.bugpatterns.collectionincompatibletype.AbstractCollectionIncompatibleTypeMatcher
-
Extracts the appropriate type argument from a specific supertype of the given
type
. - extraReason() - Method in class com.google.errorprone.bugpatterns.TypeCompatibility.TypeCompatibilityReport
F
- Factory() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.Factory
- FallThrough - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - FallThrough() - Constructor for class com.google.errorprone.bugpatterns.FallThrough
- fieldAnnotatedWithOneOf(Stream<String>) - Static method in class com.google.errorprone.bugpatterns.AbstractMockChecker
-
Creates a TypeExtractor that extracts the type of a class field if that field is annotated with any one of the given annotations.
- FieldCanBeFinal - Class in com.google.errorprone.bugpatterns
- FieldCanBeFinal() - Constructor for class com.google.errorprone.bugpatterns.FieldCanBeFinal
- FieldCanBeLocal - Class in com.google.errorprone.bugpatterns
-
Flags fields which can be replaced with local variables.
- FieldCanBeLocal() - Constructor for class com.google.errorprone.bugpatterns.FieldCanBeLocal
- FieldCanBeStatic - Class in com.google.errorprone.bugpatterns
-
Finds fields which can be safely made static.
- fieldFix(Tree, VisitorState) - Static method in class com.google.errorprone.bugpatterns.SelfEquals
- FieldMatchers - Class in com.google.errorprone.matchers
-
Static utility methods for creating
Matcher
s for detecting references to fields. - FieldMissingNullable - Class in com.google.errorprone.bugpatterns.nullness
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - FileDestination - Interface in com.google.errorprone.apply
- FileManagers - Class in com.google.errorprone
-
Manages
JavacFileManager
s for use in Error Prone's test. - FileObjects - Class in com.google.errorprone
-
Factories for in-memory
JavaFileObject
s, for testing. - FileSource - Interface in com.google.errorprone.apply
- filter(Predicate<? super BugCheckerInfo>) - Method in class com.google.errorprone.scanner.ScannerSupplier
-
Filters this
ScannerSupplier
based on the provided predicate. - FINAL - Enum constant in enum com.google.errorprone.annotations.Modifier
- Finalize - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - Finalize() - Constructor for class com.google.errorprone.bugpatterns.Finalize
- Finally - Class in com.google.errorprone.bugpatterns
-
Matches the behaviour of javac's finally Xlint warning.
- Finally() - Constructor for class com.google.errorprone.bugpatterns.Finally
- findAllFields(Type, VisitorState) - Static method in class com.google.errorprone.util.FindIdentifiers
-
Finds all the visible fields declared or inherited in the target class
- findAllIdents(VisitorState) - Static method in class com.google.errorprone.util.FindIdentifiers
-
Finds the set of all bare variable identifiers in scope at the current location.
- findClass(Symbol.ClassSymbol, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns the class tree that matches the given symbol within the compilation unit, or null if none was found.
- findClass(String) - Method in class com.google.errorprone.MaskedClassLoader
- findCommentsForArguments(MethodInvocationTree, VisitorState) - Static method in class com.google.errorprone.util.Comments
-
Attach comments to nodes on arguments of method calls.
- findCommentsForArguments(NewClassTree, VisitorState) - Static method in class com.google.errorprone.util.Comments
-
Attach comments to nodes on arguments of constructor calls.
- findConstructor(Class<T>) - Static method in class com.google.errorprone.scanner.ErrorProneInjector
- findEnclosing(Class<? extends T>...) - Method in class com.google.errorprone.VisitorState
-
Find the first enclosing tree node of one of the given types.
- findEnclosingMethod(VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
-
Finds the enclosing
MethodTree
. - findEnclosingNode(TreePath, Class<T>) - Static method in class com.google.errorprone.util.ASTHelpers
-
Given a TreePath, walks up the tree until it finds a node of the given type.
- findIdent(String, VisitorState) - Static method in class com.google.errorprone.util.FindIdentifiers
-
Finds a variable declaration with the given name that is in scope at the current location.
- findIdent(String, VisitorState, Kinds.KindSelector) - Static method in class com.google.errorprone.util.FindIdentifiers
-
Finds a declaration with the given name and type that is in scope at the current location.
- FindIdentifiers - Class in com.google.errorprone.util
-
A helper class to find all identifiers in scope at a given program point.
- FINDING_TAG - Static variable in class com.google.errorprone.bugpatterns.inlineme.Inliner
- findMatchingMethods(Name, Predicate<Symbol.MethodSymbol>, Type, Types) - Static method in class com.google.errorprone.util.ASTHelpers
-
Finds all methods in any superclass of
startClass
with a certainname
that match the givenpredicate
. - findMethod(Symbol.MethodSymbol, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns the method tree that matches the given symbol within the compilation unit, or null if none was found.
- findPathFromEnclosingNodeToTopLevel(TreePath, Class<T>) - Static method in class com.google.errorprone.util.ASTHelpers
-
Given a TreePath, finds the first enclosing node of the given type and returns the path from the enclosing node to the top-level
CompilationUnitTree
. - findPathToEnclosing(Class<? extends Tree>...) - Method in class com.google.errorprone.VisitorState
-
Returns the
TreePath
to the nearest tree node of one of the given types. - findReferencedIdentifiers(Tree) - Static method in class com.google.errorprone.util.FindIdentifiers
-
Find the set of all identifiers referenced within this Tree
- findSuperMethod(Symbol.MethodSymbol, Types) - Static method in class com.google.errorprone.util.ASTHelpers
-
Finds (if it exists) first (in the class hierarchy) non-interface super method of given
method
. - findSuperMethodInType(Symbol.MethodSymbol, Type, Types) - Static method in class com.google.errorprone.util.ASTHelpers
- findSuperMethods(Symbol.MethodSymbol, Types) - Static method in class com.google.errorprone.util.ASTHelpers
-
Finds supermethods of
methodSymbol
, not includingmethodSymbol
itself, and including interfaces. - findUnusedIdentifiers(VisitorState) - Static method in class com.google.errorprone.util.FindIdentifiers
-
Finds all variable declarations which are unused at this point in the AST (i.e.
- finished(TaskEvent) - Method in class com.google.errorprone.ErrorProneAnalyzer
- finished(TaskEvent) - Method in class com.google.errorprone.ErrorProneAnalyzer.RefactoringTask
- finished(TaskEvent) - Method in class com.google.errorprone.refaster.RefasterRuleCompilerAnalyzer
- first() - Method in class com.google.errorprone.refaster.Choice
-
Returns the first valid option from this
Choice
. - FIRST - Enum constant in enum com.google.errorprone.BugCheckerRefactoringTestHelper.FixChoosers
- FIRST - Enum constant in enum com.google.errorprone.fixes.SuggestedFixes.AdditionPosition
- firstNonNullMatchResult(ExpressionTree, VisitorState) - Static method in class com.google.errorprone.bugpatterns.collectionincompatibletype.ContainmentMatchers
- fix(ExpressionTree, VisitorState, AbstractMustBeClosedChecker.NameSuggester) - Method in class com.google.errorprone.bugpatterns.AbstractMustBeClosedChecker
- fix(ExpressionTree, VisitorState, AbstractMustBeClosedChecker.NameSuggester) - Method in class com.google.errorprone.bugpatterns.StreamResourceLeak
- Fix - Interface in com.google.errorprone.fixes
-
Represents a source code transformation, usually used to fix a bug detected by error-prone.
- FixedPosition - Class in com.google.errorprone.fixes
-
A
JCDiagnostic.DiagnosticPosition
with a fixed position. - FixedPosition(Tree, int) - Constructor for class com.google.errorprone.fixes.FixedPosition
- fixes - Variable in class com.google.errorprone.matchers.Description
-
A list of fixes to suggest in an error message or use in automated refactoring.
- fixesByReplacingExpressionWithLocallyDeclaredField(ExpressionTree, Predicate<JCTree.JCVariableDecl>, VisitorState) - Static method in class com.google.errorprone.bugpatterns.ReplacementVariableFinder
-
Suggest replacing
input
with a qualified reference to a locally declared field with a similar or the same name as theinput
expression. - fixesByReplacingExpressionWithMethodParameter(ExpressionTree, Predicate<JCTree.JCVariableDecl>, VisitorState) - Static method in class com.google.errorprone.bugpatterns.ReplacementVariableFinder
-
Suggest replacing
input
with a reference to a method parameter in the nearest enclosing method declaration with a similar or the same name as theinput
expression. - FloatCast - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - FloatCast() - Constructor for class com.google.errorprone.bugpatterns.FloatCast
- FloatingPointAssertionWithinEpsilon - Class in com.google.errorprone.bugpatterns
-
Detects usages of
Float,DoubleSubject.isWithin(TOLERANCE).of(EXPECTED)
where there are no other floating point values other thanEXPECTED
with satisfy the assertion, butTOLERANCE
is not zero. - FloatingPointAssertionWithinEpsilon() - Constructor for class com.google.errorprone.bugpatterns.FloatingPointAssertionWithinEpsilon
- FloatingPointLiteralPrecision - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - FloatingPointLiteralPrecision() - Constructor for class com.google.errorprone.bugpatterns.FloatingPointLiteralPrecision
- floatLit(float) - Static method in class com.google.errorprone.refaster.ULiteral
- FloggerArgumentToString - Class in com.google.errorprone.bugpatterns.flogger
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - FloggerArgumentToString() - Constructor for class com.google.errorprone.bugpatterns.flogger.FloggerArgumentToString
- FloggerFormatString - Class in com.google.errorprone.bugpatterns.flogger
- FloggerFormatString() - Constructor for class com.google.errorprone.bugpatterns.flogger.FloggerFormatString
- FloggerLogString - Class in com.google.errorprone.bugpatterns.flogger
-
Detects invocations of
LoggingApi.log(String)
for which the argument is not a compile-time constant and provides suggested alternatives. - FloggerLogString() - Constructor for class com.google.errorprone.bugpatterns.flogger.FloggerLogString
- FloggerLogVarargs - Class in com.google.errorprone.bugpatterns.flogger
- FloggerLogVarargs() - Constructor for class com.google.errorprone.bugpatterns.flogger.FloggerLogVarargs
- FloggerLogWithCause - Class in com.google.errorprone.bugpatterns.flogger
-
Flags cases where there is an exception available that could be set as the cause in a log message.
- FloggerLogWithCause() - Constructor for class com.google.errorprone.bugpatterns.flogger.FloggerLogWithCause
- FloggerMessageFormat - Class in com.google.errorprone.bugpatterns.flogger
- FloggerMessageFormat() - Constructor for class com.google.errorprone.bugpatterns.flogger.FloggerMessageFormat
- FloggerRedundantIsEnabled - Class in com.google.errorprone.bugpatterns.flogger
- FloggerRedundantIsEnabled() - Constructor for class com.google.errorprone.bugpatterns.flogger.FloggerRedundantIsEnabled
- FloggerRequiredModifiers - Class in com.google.errorprone.bugpatterns.flogger
-
Ensures that class-level FluentLogger objects are private static final.
- FloggerSplitLogStatement - Class in com.google.errorprone.bugpatterns.flogger
-
Bugpattern to prevent splitting flogger log invocations into multiple statements.
- FloggerSplitLogStatement() - Constructor for class com.google.errorprone.bugpatterns.flogger.FloggerSplitLogStatement
- FloggerStringConcatenation - Class in com.google.errorprone.bugpatterns.flogger
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - FloggerStringConcatenation() - Constructor for class com.google.errorprone.bugpatterns.flogger.FloggerStringConcatenation
- FloggerWithCause - Class in com.google.errorprone.bugpatterns.flogger
-
Flogger's withCause(Throwable) method checks
- FloggerWithCause() - Constructor for class com.google.errorprone.bugpatterns.flogger.FloggerWithCause
- FloggerWithoutCause - Class in com.google.errorprone.bugpatterns.flogger
-
Detects Flogger log statements that pass Exceptions to the log method instead of using withCause.
- FloggerWithoutCause() - Constructor for class com.google.errorprone.bugpatterns.flogger.FloggerWithoutCause
- flush() - Method in class com.google.errorprone.apply.DiscardingFileDestination
- flush() - Method in interface com.google.errorprone.apply.FileDestination
- flush() - Method in class com.google.errorprone.apply.FsFileDestination
- flush() - Method in class com.google.errorprone.apply.PatchFileDestination
- FOR_IMMUTABLE_CHECKER - Enum constant in enum com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Purpose
-
This is being used by the immutability bug checker
- FOR_THREAD_SAFE_CHECKER - Enum constant in enum com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Purpose
-
This is being used by the thread-safety bug checker
- forbidder() - Method in class com.google.errorprone.bugpatterns.AbstractMockChecker
-
Produce a MockForbidder to use when looking for disallowed mocks, in addition to the built-in checks for Annotations of type
T
. - forbidReason(Type, VisitorState) - Method in interface com.google.errorprone.bugpatterns.AbstractMockChecker.MockForbidder
-
If the given type should not be mocked, provide an explanation why.
- forCheck(BugChecker) - Static method in class com.google.errorprone.bugpatterns.StronglyType
- forClass(TypePredicate) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.ConstructorMatcher
-
Deprecated.Match on types that satisfy the given predicate.
- forClass(Supplier<Type>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.ConstructorMatcher
-
Deprecated.Match on the given type exactly.
- forClass(String) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.ConstructorMatcher
-
Deprecated.Match on the given type exactly.
- forCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.SuppressionInfo
-
Generates the
SuppressionInfo
for aCompilationUnitTree
. - ForEachIterable - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - ForEachIterable() - Constructor for class com.google.errorprone.bugpatterns.ForEachIterable
- fork() - Method in class com.google.errorprone.refaster.Unifier
-
Returns a
Unifier
containing all the bindings from thisUnifier
, but which can succeed or fail independently of thisUnifier
. - FormatMethod - Annotation Type in com.google.errorprone.annotations
-
Annotation for a method that takes a printf-style format string as an argument followed by arguments for that format string.
- formatMethodArguments(MethodInvocationTree, VisitorState) - Static method in class com.google.errorprone.bugpatterns.formatstring.FormatStringUtils
- FormatString - Class in com.google.errorprone.bugpatterns.formatstring
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - FormatString - Annotation Type in com.google.errorprone.annotations
-
Annotation for method parameter declarations which denotes that actual parameters will be used as a format string in printf-style formatting.
- FormatString() - Constructor for class com.google.errorprone.bugpatterns.formatstring.FormatString
- FormatStringAnnotationChecker - Class in com.google.errorprone.bugpatterns.formatstring
-
BugChecker
to assert validity of methods calls withFormatString
annotations. - FormatStringAnnotationChecker() - Constructor for class com.google.errorprone.bugpatterns.formatstring.FormatStringAnnotationChecker
- FormatStringUtils - Class in com.google.errorprone.bugpatterns.formatstring
-
Format string utilities.
- FormatStringValidation - Class in com.google.errorprone.bugpatterns.formatstring
-
Utilities for validating format strings.
- FormatStringValidation.ValidationResult - Class in com.google.errorprone.bugpatterns.formatstring
-
Description of an incorrect format method call.
- forNumber(int) - Static method in enum com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.DiffCase
- ForOverride - Annotation Type in com.google.errorprone.annotations
-
Indicates that the annotated method is provided only to be overridden: it should not be invoked from outside its declaring source file (as if it is
private
), and overriding methods should not be directly invoked at all. - ForOverrideChecker - Class in com.google.errorprone.bugpatterns
-
Verifies that methods marked
ForOverride
are only called from the defining class. - ForOverrideChecker() - Constructor for class com.google.errorprone.bugpatterns.ForOverrideChecker
- forResource(Class<?>, String) - Static method in class com.google.errorprone.FileObjects
-
Loads a resource of the provided class into a
JavaFileObject
. - forResources(Class<?>, String...) - Static method in class com.google.errorprone.FileObjects
-
Loads resources of the provided class into
JavaFileObject
s. - forSourceLines(String, String...) - Static method in class com.google.errorprone.FileObjects
-
Creates a
JavaFileObject
with the given name and content. - FOURTH - Enum constant in enum com.google.errorprone.BugCheckerRefactoringTestHelper.FixChoosers
- FRAGILE_CODE - Static variable in class com.google.errorprone.BugPattern.StandardTags
-
This check detects code that may technically be working within a limited domain, but is fragile, or violates generally-accepted assumptions of behavior.
- FragmentInjection - Class in com.google.errorprone.bugpatterns.android
- FragmentInjection() - Constructor for class com.google.errorprone.bugpatterns.android.FragmentInjection
- FragmentNotInstantiable - Class in com.google.errorprone.bugpatterns.android
- FragmentNotInstantiable() - Constructor for class com.google.errorprone.bugpatterns.android.FragmentNotInstantiable
- FragmentNotInstantiable(Iterable<String>) - Constructor for class com.google.errorprone.bugpatterns.android.FragmentNotInstantiable
- freeExpressionVariables(MethodTree) - Static method in class com.google.errorprone.refaster.UTemplater
- from(Tree.Kind) - Static method in enum com.google.errorprone.util.OperatorPrecedence
- from(Tree, VisitorState) - Static method in class com.google.errorprone.bugpatterns.threadsafety.GuardedBySymbolResolver
- from(Symbol.ClassSymbol, GuardedBySymbolResolver.MethodInfo, CompilationUnitTree, Context, Tree, VisitorState) - Static method in class com.google.errorprone.bugpatterns.threadsafety.GuardedBySymbolResolver
- from(JCTree.JCExpression, GuardedByExpression, VisitorState, GuardedByFlags) - Static method in class com.google.errorprone.bugpatterns.threadsafety.HeldLockAnalyzer.ExpectedLockCalculator
-
Determine the lock expression that needs to be held when accessing a specific guarded member.
- from(Collection<T>) - Static method in class com.google.errorprone.refaster.Choice
- fromAnnotationMirrors(List<? extends AnnotationMirror>) - Static method in class com.google.errorprone.dataflow.nullnesspropagation.NullnessAnnotations
- fromAnnotationsOn(Symbol) - Static method in class com.google.errorprone.dataflow.nullnesspropagation.NullnessAnnotations
- fromAnnotationsOn(TypeMirror) - Static method in class com.google.errorprone.dataflow.nullnesspropagation.NullnessAnnotations
- fromAnnotationTrees(List<? extends AnnotationTree>) - Static method in class com.google.errorprone.dataflow.nullnesspropagation.NullnessAnnotations
- fromBugCheckerClasses(Class<? extends BugChecker>...) - Static method in class com.google.errorprone.scanner.ScannerSupplier
-
Returns a
ScannerSupplier
with a specific list ofBugChecker
classes. - fromBugCheckerClasses(Iterable<Class<? extends BugChecker>>) - Static method in class com.google.errorprone.scanner.ScannerSupplier
-
Returns a
ScannerSupplier
with a specific list ofBugChecker
classes. - fromBugCheckerInfos(Iterable<BugCheckerInfo>) - Static method in class com.google.errorprone.scanner.ScannerSupplier
-
Returns a
ScannerSupplier
built from a list ofBugCheckerInfo
s. - fromDefaultAnnotations(Element) - Static method in class com.google.errorprone.dataflow.nullnesspropagation.NullnessAnnotations
-
Walks the syntactically enclosing elements of the given element until it finds a defaulting annotation.
- fromElement(Element) - Static method in class com.google.errorprone.BugPatternInstance
- fromFieldAccess(FieldAccessNode) - Static method in class com.google.errorprone.dataflow.AccessPath
-
Creates an AccessPath from field reads / AutoValue accessor we can track and returns null otherwise (for example, when the receiver of the field access contains an array access or non-AutoValue method call.
- fromFlags(ErrorProneFlags) - Static method in class com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions
- fromFlags(ErrorProneFlags) - Static method in class com.google.errorprone.bugpatterns.threadsafety.WellKnownMutability
- fromFlags(ErrorProneFlags) - Static method in class com.google.errorprone.bugpatterns.threadsafety.WellKnownThreadSafety
- fromLocalVariable(LocalVariableNode) - Static method in class com.google.errorprone.dataflow.AccessPath
- fromMap(Map<String, String>) - Static method in class com.google.errorprone.ErrorProneFlags
- fromMembers(Set<String>, Multimap<String, ApiDiff.ClassMemberKey>) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiff
- fromModifiers(Set<Modifier>) - Static method in enum com.google.errorprone.util.Visibility
- fromNodeIfTrackable(Node) - Static method in class com.google.errorprone.dataflow.AccessPath
-
Returns an AccessPath representing
node
ifnode
is representable as an access path and null otherwise - fromOptional(Optional<T>) - Static method in class com.google.errorprone.refaster.Choice
-
Returns a choice of the optional value, if it is present, or the empty choice if it is absent.
- fromPatterns(Iterable<String>) - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.PackagesRule
-
Returns a new rule using the given package
patterns
. - fromProto(ApiDiffProto.Diff) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiff
-
Converts a
ApiDiffProto.Diff
to aApiDiff
. - fromScanner(Scanner) - Static method in class com.google.errorprone.scanner.ScannerSupplier
-
Returns a
ScannerSupplier
that just returns theScanner
that was passed in. - fromSource(CharSequence, EndPosTable) - Static method in class com.google.errorprone.fixes.AppliedFix
- fromStrings(Iterable<String>) - Static method in class com.google.errorprone.suppliers.Suppliers
- fromSymbol(Symbol.MethodSymbol, Types) - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.ApiFactory
-
Returns the
Api
representation of the givensymbol
. - FromTemporalAccessor - Class in com.google.errorprone.bugpatterns.time
-
Bans calls to
javaTimeType.from(temporalAmount)
where the call is guaranteed to either: throw aDateTimeException
at runtime (e.g.,LocalDate.from(month)
) return the same parameter (e.g.,Instant.from(instant)
) - FromTemporalAccessor() - Constructor for class com.google.errorprone.bugpatterns.time.FromTemporalAccessor
- fromVariableDecl(VariableDeclarationNode) - Static method in class com.google.errorprone.dataflow.AccessPath
- FsFileDestination - Class in com.google.errorprone.apply
-
A
FileDestination
that writes content to a destination on the local filesystem. - FsFileDestination(Path) - Constructor for class com.google.errorprone.apply.FsFileDestination
- FsFileSource - Class in com.google.errorprone.apply
-
A FileSource that reads source files from the local filesystem.
- FsFileSource(Path) - Constructor for class com.google.errorprone.apply.FsFileSource
- FunctionalInterfaceClash - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - FunctionalInterfaceClash() - Constructor for class com.google.errorprone.bugpatterns.FunctionalInterfaceClash
- FunctionalInterfaceMethodChanged - Class in com.google.errorprone.bugpatterns
- FunctionalInterfaceMethodChanged() - Constructor for class com.google.errorprone.bugpatterns.FunctionalInterfaceMethodChanged
- FutureReturnValueIgnored - Class in com.google.errorprone.bugpatterns
-
See BugPattern annotation.
- FuturesGetCheckedIllegalExceptionType - Class in com.google.errorprone.bugpatterns
-
Checks for calls to Guava's
Futures.getChecked
method that will always fail because they pass an incompatible exception type. - FuturesGetCheckedIllegalExceptionType() - Constructor for class com.google.errorprone.bugpatterns.FuturesGetCheckedIllegalExceptionType
- FutureTransformAsync - Class in com.google.errorprone.bugpatterns
-
See summary for details.
- FutureTransformAsync() - Constructor for class com.google.errorprone.bugpatterns.FutureTransformAsync
- FuzzyEqualsShouldNotBeUsedInEqualsMethod - Class in com.google.errorprone.bugpatterns
- FuzzyEqualsShouldNotBeUsedInEqualsMethod() - Constructor for class com.google.errorprone.bugpatterns.FuzzyEqualsShouldNotBeUsedInEqualsMethod
G
- generateExamplesFromTestCases() - Element in annotation type com.google.errorprone.BugPattern
-
Deprecated.this is a no-op that will be removed in the future
- generateNegation() - Method in class com.google.errorprone.refaster.ExpressionTemplate
- genericTypeOf(Supplier<ExpressionTree>, int) - Static method in class com.google.errorprone.suppliers.Suppliers
-
Supplies the n'th generic type of the given expression.
- genericTypeOfType(Supplier<Type>, int) - Static method in class com.google.errorprone.suppliers.Suppliers
-
Supplies the n'th generic type of the given expression.
- get(boolean) - Static method in class com.google.errorprone.matchers.UnusedReturnValueMatcher
-
Gets an instance of this matcher.
- get(VisitorState) - Method in interface com.google.errorprone.suppliers.Supplier
- get(Context.Key<T>) - Method in class com.google.errorprone.SubContext
- get(Class<T>) - Method in class com.google.errorprone.SubContext
- get(String) - Method in class com.google.errorprone.ErrorProneFlags
-
Gets flag value for the given key as a String, wrapped in an
Optional
, which is empty if the flag is unset. - getAllChecks() - Method in class com.google.errorprone.scanner.ScannerSupplier
-
Returns a map of check name to
BugCheckerInfo
for allBugCheckerInfo
s in thisScannerSupplier
, including disabled ones. - getAllowReasons(ExpressionTree, VisitorState) - Method in class com.google.errorprone.matchers.UnusedReturnValueMatcher
-
Returns a stream of reasons the given expression is allowed to have an unused return value based on its context.
- getAnalysis() - Method in interface com.google.errorprone.dataflow.DataFlow.Result
- getAnnotation(Tree, Class<T>) - Static method in class com.google.errorprone.util.ASTHelpers
-
Deprecated.If
annotationClass
contains a member that is aClass
or an array of them, attempting to access that member from the Error Prone checker code will result in a runtime exception. Instead, operate ongetSymbol(tree).getAnnotationMirrors()
to meta-syntactically inspect the annotation. Note that this method (and thegetSymbol
-based replacement suggested above) looks for annotations not just on the given tree (such as aMethodTree
) but also on the symbol referred to by the given tree (such as on theSymbol.MethodSymbol
that is being called by the givenMethodInvocationTree
). If you want to examine annotations only on the given tree, then useASTHelpers.getAnnotations(com.sun.source.tree.Tree)
(or a direct call to agetAnnotations
method declared on a specificTree
subclass) instead. - getAnnotation(Symbol, Class<T>) - Static method in class com.google.errorprone.util.ASTHelpers
-
Deprecated.If
annotationClass
contains a member that is aClass
or an array of them, attempting to access that member from the Error Prone checker code will result in a runtime exception. Instead, operate onsym.getAnnotationMirrors()
to meta-syntactically inspect the annotation. - getAnnotationMirror(AnnotationTree) - Static method in class com.google.errorprone.util.ASTHelpers
-
Return a mirror of this annotation.
- getAnnotationName(AnnotationTree) - Static method in class com.google.errorprone.util.ASTHelpers
- getAnnotations(Tree) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns the annotations of the given tree, or an empty list.
- getAnnotationsWithSimpleName(List<? extends AnnotationTree>, String) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns a list of
AnnotationTree
with the given simple name. - getAnnotationType(AnnotationTree, Symbol, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns whether
anno
corresponds to a type annotation, ornull
if it could not be determined. - getAnnotationValue(Attribute.Compound, String) - Static method in class com.google.errorprone.util.MoreAnnotations
-
Returns the value of the annotation element-value pair with the given name if it is explicitly set.
- getAnnotationWithSimpleName(List<? extends AnnotationTree>, String) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns an
AnnotationTree
with the given simple name, ornull
. - getArgument(AnnotationTree, String) - Static method in class com.google.errorprone.matchers.AnnotationMatcherUtils
-
Gets the value for an argument, or null if the argument does not exist.
- getArguments() - Method in class com.google.errorprone.refaster.UMethodInvocation
- getAsSequence() - Method in class com.google.errorprone.apply.SourceFile
- getBinding(Bindings.Key<V>) - Method in class com.google.errorprone.refaster.Bindings
- getBinding(Bindings.Key<V>) - Method in class com.google.errorprone.refaster.Inliner
- getBinding(Bindings.Key<V>) - Method in class com.google.errorprone.refaster.Unifier
- getBindings() - Method in class com.google.errorprone.refaster.Unifier
- getBoolean(String) - Method in class com.google.errorprone.ErrorProneFlags
-
Gets the flag value for the given key as a Boolean, wrapped in an
Optional
, which is empty if the flag is unset. - getBugCheckers() - Method in class com.google.errorprone.scanner.ErrorProneScanner
- getCaseExpressions(CaseTree) - Static method in class com.google.errorprone.util.ASTHelpers
-
Retrieves a stream containing all case expressions, in order, for a given
CaseTree
. - getCaseTreeBody(CaseTree) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns the statement or expression after the arrow for a
CaseTree
of the form:case <expression> -> <body>
. - getChildNodes(ClassTree, VisitorState) - Method in class com.google.errorprone.matchers.ConstructorOfClass
- getChildNodes(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.matchers.HasArguments
- getChildNodes(MethodTree, VisitorState) - Method in class com.google.errorprone.matchers.MethodHasParameters
- getChildNodes(T, VisitorState) - Method in class com.google.errorprone.matchers.AnnotationMatcher
- getChildNodes(T, VisitorState) - Method in class com.google.errorprone.matchers.ChildMultiMatcher
-
Returns the set of child nodes to match.
- getClassDiff(int) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
- getClassDiff(int) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
- getClassDiff(int) - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.DiffOrBuilder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
- getClassDiffBuilder(int) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
- getClassDiffBuilderList() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
- getClassDiffCount() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
- getClassDiffCount() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
- getClassDiffCount() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.DiffOrBuilder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
- getClassDiffList() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
- getClassDiffList() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
- getClassDiffList() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.DiffOrBuilder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
- getClassDiffOrBuilder(int) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
- getClassDiffOrBuilder(int) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
- getClassDiffOrBuilder(int) - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.DiffOrBuilder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
- getClassDiffOrBuilderList() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
- getClassDiffOrBuilderList() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
- getClassDiffOrBuilderList() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.DiffOrBuilder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
- getClassName() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
-
string class_name = 1;
- getClassName() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
-
string class_name = 1;
- getClassName() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiffOrBuilder
-
string class_name = 1;
- getClassName() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
-
string class_name = 1;
- getClassName() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
-
string class_name = 1;
- getClassName() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiffOrBuilder
-
string class_name = 1;
- getClassNameBytes() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
-
string class_name = 1;
- getClassNameBytes() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
-
string class_name = 1;
- getClassNameBytes() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiffOrBuilder
-
string class_name = 1;
- getClassNameBytes() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
-
string class_name = 1;
- getClassNameBytes() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
-
string class_name = 1;
- getClassNameBytes() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiffOrBuilder
-
string class_name = 1;
- GetClassOnAnnotation - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - GetClassOnAnnotation() - Constructor for class com.google.errorprone.bugpatterns.GetClassOnAnnotation
- GetClassOnClass - Class in com.google.errorprone.bugpatterns
- GetClassOnClass() - Constructor for class com.google.errorprone.bugpatterns.GetClassOnClass
- GetClassOnEnum - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - GetClassOnEnum() - Constructor for class com.google.errorprone.bugpatterns.GetClassOnEnum
- getCoalescePolicy() - Method in interface com.google.errorprone.fixes.Fix
- getConstantExpression(Object) - Method in class com.google.errorprone.VisitorState
-
Returns the Java source code for a constant expression representing the given constant value.
- getConstructors(ClassTree) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns the list of all constructors defined in the class (including generated ones).
- getConstructors(Symbol.ClassSymbol) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns the list of all constructors defined in the class.
- getContext() - Method in class com.google.errorprone.refaster.Inliner
- getContext() - Method in class com.google.errorprone.refaster.Unifier
- getControlFlowGraph() - Method in interface com.google.errorprone.dataflow.DataFlow.Result
- getCustomSuppressionAnnotations(VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- getCustomSuppressionAnnotations(VisitorState) - Method in class com.google.errorprone.scanner.Scanner
-
Returns a set of all the custom suppression annotation types used by the
BugChecker
s in thisScanner
. - getDeclarationAndTypeAttributes(Symbol) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns declaration annotations of the given symbol, as well as 'top-level' type annotations, including : Type annotations of the return type of a method.
- getDeclarationAndTypeAttributes(Symbol) - Static method in class com.google.errorprone.util.MoreAnnotations
-
Returns declaration annotations of the given symbol, as well as 'top-level' type annotations, including : Type annotations of the return type of a method.
- getDeclaredSymbol(Tree) - Static method in class com.google.errorprone.util.ASTHelpers
-
Gets the symbol declared by a tree.
- getDefaultInstance() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
- getDefaultInstance() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
- getDefaultInstance() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
- getDefaultInstance() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
- getDefaultInstance() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
- getDefaultInstanceForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
- getDefaultInstanceForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
- getDefaultInstanceForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
- getDefaultInstanceForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
- getDefaultInstanceForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
- getDefaultInstanceForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
- getDefaultInstanceForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
- getDefaultInstanceForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
- getDefaultInstanceForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
- getDefaultInstanceForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
- getDescription(Symbol.MethodSymbol) - Method in class com.google.errorprone.bugpatterns.OverridingMethodInconsistentArgumentNamesChecker
-
Provides a violation description with suggested parameter ordering.
- getDescriptionListener(Log, JCTree.JCCompilationUnit) - Method in interface com.google.errorprone.DescriptionListener.Factory
- getDescriptionListener(Log, JCTree.JCCompilationUnit) - Method in class com.google.errorprone.RefactoringCollection
- getDescriptor() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
- getDescriptor() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
- getDescriptor() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
- getDescriptor() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
- getDescriptor() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
- getDescriptor() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
- getDescriptor() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
- getDescriptor() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
- getDescriptor() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto
- getDescriptor() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
- getDescriptor() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
- getDescriptorForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
- getDescriptorForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
- getDescriptorForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
- getDescriptorForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
- getDescriptorForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
- getDiagnostics() - Method in class com.google.errorprone.DiagnosticTestHelper
- getDiffCase() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
- getDiffCase() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
- getDiffCase() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiffOrBuilder
- getDiffs(FileSource, String[]) - Method in interface com.google.errorprone.apply.DiffSupplier
-
Gets the list of differences
- getEditDistance(String, String) - Static method in class com.google.errorprone.names.LevenshteinEditDistance
-
Returns the edit distance between two strings.
- getEditDistance(String, String, boolean) - Static method in class com.google.errorprone.names.LevenshteinEditDistance
-
Returns the edit distance between two strings.
- getEditDistance(String, String, boolean, int, int, int) - Static method in class com.google.errorprone.names.NeedlemanWunschEditDistance
-
Returns the edit distance between two strings.
- getElements() - Method in class com.google.errorprone.VisitorState
- getEnabledChecks() - Method in class com.google.errorprone.scanner.ScannerSupplier
-
Returns the set of
BugCheckerInfo
s that are enabled in thisScannerSupplier
. - getEnclosedElements(Symbol) - Static method in class com.google.errorprone.util.ASTHelpers
-
A wrapper for
Symbol.getEnclosedElements()
to avoid binary compatibility issues for covariant overrides in subtypes ofSymbol
. - getEndPos() - Method in class com.google.errorprone.apply.ImportStatements
-
Return the end position of the import statements.
- getEndPos() - Method in class com.google.errorprone.util.ErrorProneComment
- getEndPosition(Tree) - Method in class com.google.errorprone.VisitorState
-
Returns the end position of the node, or -1 if it is not available.
- getEndPosition(EndPosTable) - Method in class com.google.errorprone.fixes.AdjustedPosition
- getEndPosition(EndPosTable) - Method in class com.google.errorprone.fixes.FixedPosition
- getEndPosition(EndPosTable) - Method in class com.google.errorprone.fixes.IndexedPosition
- getEnum(String, Class<T>) - Method in class com.google.errorprone.ErrorProneFlags
-
Gets the flag value for an enum of the given type, wrapped in an
Optional
, which is empty if the flag is unset. - getEnumSet(String, Class<T>) - Method in class com.google.errorprone.ErrorProneFlags
-
Gets the flag value for a comma-separated set of enums of the given type, wrapped in an
Optional
, which is empty if the flag is unset. - getErasedTypeTree(Tree) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns the erasure of the given type tree, i.e.
- getEverythingDiff() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
-
.devtools.staticanalysis.errorprone.apidiff.EverythingDiff everything_diff = 1;
- getEverythingDiff() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
-
.devtools.staticanalysis.errorprone.apidiff.EverythingDiff everything_diff = 1;
- getEverythingDiff() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiffOrBuilder
-
.devtools.staticanalysis.errorprone.apidiff.EverythingDiff everything_diff = 1;
- getEverythingDiffBuilder() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
-
.devtools.staticanalysis.errorprone.apidiff.EverythingDiff everything_diff = 1;
- getEverythingDiffOrBuilder() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
-
.devtools.staticanalysis.errorprone.apidiff.EverythingDiff everything_diff = 1;
- getEverythingDiffOrBuilder() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
-
.devtools.staticanalysis.errorprone.apidiff.EverythingDiff everything_diff = 1;
- getEverythingDiffOrBuilder() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiffOrBuilder
-
.devtools.staticanalysis.errorprone.apidiff.EverythingDiff everything_diff = 1;
- getExcludedPattern() - Method in class com.google.errorprone.ErrorProneOptions
- getExpression() - Method in class com.google.errorprone.refaster.UMemberSelect
- getExpression() - Method in class com.google.errorprone.refaster.UReturn
- getExpressionForCase(VisitorState, ExpressionTree) - Method in class com.google.errorprone.bugpatterns.AbstractUseSwitch
-
Returns the source text that should appear in a
case
statement in the fix. - getExpressionForCase(VisitorState, ExpressionTree) - Method in class com.google.errorprone.bugpatterns.UseEnumSwitch
- getExprNullness(ExpressionTree) - Method in class com.google.errorprone.dataflow.nullnesspropagation.inference.InferredNullability
-
Get inferred nullness qualifier for an expression, if possible.
- getFieldInitializerNullness(TreePath, Context) - Method in class com.google.errorprone.dataflow.nullnesspropagation.TrustingNullnessAnalysis
- getFileName(CompilationUnitTree) - Static method in class com.google.errorprone.util.ASTHelpers
-
Extract the filename from a
CompilationUnitTree
, with special handling for jar files. - getFileNameFromUri(URI) - Static method in class com.google.errorprone.util.ASTHelpers
-
Extract the filename from the URI, with special handling for jar files.
- getFixes() - Method in class com.google.errorprone.fixes.BranchedSuggestedFixes
- getFlags() - Method in class com.google.errorprone.ErrorProneOptions
- getFlags() - Method in class com.google.errorprone.scanner.ScannerSupplier
- getFlagsMap() - Method in class com.google.errorprone.ErrorProneFlags
- getFragmentByChars(int, int) - Method in class com.google.errorprone.apply.SourceFile
-
Returns a fragment of the source code as a string.
- getFragmentByLines(int, int) - Method in class com.google.errorprone.apply.SourceFile
-
Returns a fragment of the source code between the two stated line numbers.
- getGeneratedBy(VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns the value of the
@Generated
annotation on enclosing classes, if present. - getGeneratedBy(Symbol, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns the values of the given symbol's
Generated
annotations, if present. - getGuardValues(Symbol) - Static method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByUtils
- getIdentifier() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
-
string identifier = 1;
- getIdentifier() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
-
string identifier = 1;
- getIdentifier() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMemberOrBuilder
-
string identifier = 1;
- getIdentifier() - Method in class com.google.errorprone.refaster.Bindings.Key
- getIdentifier() - Method in class com.google.errorprone.refaster.UMemberSelect
- getIdentifierBytes() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
-
string identifier = 1;
- getIdentifierBytes() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
-
string identifier = 1;
- getIdentifierBytes() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMemberOrBuilder
-
string identifier = 1;
- getImportOrganizer(String) - Static method in class com.google.errorprone.ImportOrderParser
-
Parse import order string and create appropriate
ImportOrganizer
. - getImportsToAdd() - Method in interface com.google.errorprone.fixes.Fix
- getImportsToAdd() - Method in class com.google.errorprone.fixes.SuggestedFix
- getImportsToAdd() - Method in class com.google.errorprone.refaster.Inliner
- getImportsToRemove() - Method in interface com.google.errorprone.fixes.Fix
- getImportsToRemove() - Method in class com.google.errorprone.fixes.SuggestedFix
- getInferredNullability(Tree) - Static method in class com.google.errorprone.dataflow.nullnesspropagation.inference.NullnessQualifierInference
- getInheritedAnnotation(Symbol, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety
-
Gets the possibly inherited marker annotation on the given symbol, and reverse-propagates containerOf spec's from super-classes.
- getInitializer() - Method in class com.google.errorprone.refaster.UVariableDecl
- getInstance(Class<T>) - Method in class com.google.errorprone.scanner.ErrorProneInjector
- getInteger(String) - Method in class com.google.errorprone.ErrorProneFlags
-
Gets the flag value for the given key as an Integer, wrapped in an
Optional
, which is empty if the flag is unset. - getKind() - Method in class com.google.errorprone.refaster.UAnyOf
- getKind() - Method in class com.google.errorprone.refaster.UFreeIdent
- getKind() - Method in class com.google.errorprone.refaster.UMethodIdent
- getKind() - Method in class com.google.errorprone.refaster.UStaticIdent
- getKind() - Method in class com.google.errorprone.refaster.ULiteral
- getKind() - Method in class com.google.errorprone.refaster.UMemberSelect
- getKind() - Method in class com.google.errorprone.refaster.UMethodInvocation
- getKind() - Method in class com.google.errorprone.refaster.UPlaceholderExpression
- getKind() - Method in class com.google.errorprone.refaster.UReturn
- getKind() - Method in class com.google.errorprone.refaster.UVariableDecl
- getKnownImmutableClasses() - Method in class com.google.errorprone.bugpatterns.threadsafety.WellKnownMutability
- getKnownMutableClasses() - Method in class com.google.errorprone.bugpatterns.threadsafety.WellKnownMutability
- getKnownSafeClasses() - Method in interface com.google.errorprone.bugpatterns.threadsafety.ThreadSafetyKnownTypes
-
Types that are known to be safe even if they're not annotated with an expected annotation.
- getKnownSafeClasses() - Method in class com.google.errorprone.bugpatterns.threadsafety.WellKnownMutability
-
Deprecated.
WellKnownMutability.getKnownImmutableClasses()
is clearer if you're dealing with this specific class. - getKnownSafeClasses() - Method in class com.google.errorprone.bugpatterns.threadsafety.WellKnownThreadSafety
- getKnownThreadSafeClasses() - Method in class com.google.errorprone.bugpatterns.threadsafety.WellKnownThreadSafety
- getKnownUnsafeClasses() - Method in interface com.google.errorprone.bugpatterns.threadsafety.ThreadSafetyKnownTypes
-
Types that are known to be unsafe and don't need testing.
- getKnownUnsafeClasses() - Method in class com.google.errorprone.bugpatterns.threadsafety.WellKnownMutability
-
Deprecated.
WellKnownMutability.getKnownMutableClasses()
is clearer if you're dealing with this specific class. - getKnownUnsafeClasses() - Method in class com.google.errorprone.bugpatterns.threadsafety.WellKnownThreadSafety
- getLineMap() - Method in class com.google.errorprone.util.ErrorProneTokens
- getLines() - Method in class com.google.errorprone.apply.SourceFile
-
Returns a copy of code as a list of lines.
- getLink() - Method in class com.google.errorprone.matchers.Description
-
Returns a link associated with this finding or null if there is no link.
- getListOrEmpty(String) - Method in class com.google.errorprone.ErrorProneFlags
-
Gets the flag value for the given key as a comma-separated
ImmutableList
of Strings, or an empty list if the flag is unset. - getLocation() - Method in class com.google.errorprone.refaster.TemplateMatch
- getLowerBound() - Method in class com.google.errorprone.refaster.UTypeVar
- getMarkerOrAcceptedAnnotation(Symbol, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety
-
Gets the
Symbol
's annotation info, either from a marker annotation on the symbol, from an accepted annotation on the symbol, or from the list of well-known types. - getMatcherWithFlags() - Method in class com.google.errorprone.bugpatterns.AbstractPatternSyntaxChecker
- getMatcherWithoutFlags() - Method in class com.google.errorprone.bugpatterns.AbstractPatternSyntaxChecker
- getMatchMetadata(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CheckReturnValue
- getMatchMetadata(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.IgnoredPureGetter
- getMatchMetadata(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ReturnValueIgnored
- getMatchMetadata(E, C) - Method in interface com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicyAnalyzer
-
Returns a map of optional metadata about why this check matched the given expression.
- getMember(int) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
- getMember(int) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
- getMember(int) - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiffOrBuilder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
- getMemberBuilder(int) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
- getMemberBuilderList() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
- getMemberCount() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
- getMemberCount() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
- getMemberCount() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiffOrBuilder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
- getMemberDescriptor() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
-
a JVMS 4.3 member descriptor
- getMemberDescriptor() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
-
a JVMS 4.3 member descriptor
- getMemberDescriptor() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMemberOrBuilder
-
a JVMS 4.3 member descriptor
- getMemberDescriptorBytes() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
-
a JVMS 4.3 member descriptor
- getMemberDescriptorBytes() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
-
a JVMS 4.3 member descriptor
- getMemberDescriptorBytes() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMemberOrBuilder
-
a JVMS 4.3 member descriptor
- getMemberDiff() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
-
.devtools.staticanalysis.errorprone.apidiff.MemberDiff member_diff = 2;
- getMemberDiff() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
-
.devtools.staticanalysis.errorprone.apidiff.MemberDiff member_diff = 2;
- getMemberDiff() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiffOrBuilder
-
.devtools.staticanalysis.errorprone.apidiff.MemberDiff member_diff = 2;
- getMemberDiffBuilder() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
-
.devtools.staticanalysis.errorprone.apidiff.MemberDiff member_diff = 2;
- getMemberDiffOrBuilder() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
-
.devtools.staticanalysis.errorprone.apidiff.MemberDiff member_diff = 2;
- getMemberDiffOrBuilder() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
-
.devtools.staticanalysis.errorprone.apidiff.MemberDiff member_diff = 2;
- getMemberDiffOrBuilder() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiffOrBuilder
-
.devtools.staticanalysis.errorprone.apidiff.MemberDiff member_diff = 2;
- getMemberList() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
- getMemberList() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
- getMemberList() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiffOrBuilder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
- getMemberOrBuilder(int) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
- getMemberOrBuilder(int) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
- getMemberOrBuilder(int) - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiffOrBuilder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
- getMemberOrBuilderList() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
- getMemberOrBuilderList() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
- getMemberOrBuilderList() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiffOrBuilder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
- getMessage() - Method in class com.google.errorprone.matchers.Description
-
Returns the message to be printed by the compiler when a match is found in interactive use.
- getMessage(Name) - Method in class com.google.errorprone.bugpatterns.AbstractReturnValueIgnored
-
Returns the diagnostic message.
- getMessage(Name) - Method in class com.google.errorprone.bugpatterns.ReturnValueIgnored
- getMessageWithoutCheckName() - Method in class com.google.errorprone.matchers.Description
-
Returns the message, not including the check name but including the link.
- getMethodKind(M) - Method in interface com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicyEvaluator.MethodInfo
-
Returns the kind of the given method.
- getMethodPolicy(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractReturnValueIgnored
- getMethodPolicy(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CheckReturnValue
- getMethodPolicy(E, C) - Method in interface com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicyAnalyzer
-
Returns the
ResultUsePolicy
for the method used in the givenexpression
. - getMethodSelect() - Method in class com.google.errorprone.refaster.UMethodInvocation
- getModifiedFileUri(VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes.FixCompiler
- getModifiers() - Method in class com.google.errorprone.refaster.LocalVarBinding
- getModifiers() - Method in class com.google.errorprone.refaster.UVariableDecl
- getModifiers(Tree) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns the modifiers tree of the given class, method, or variable declaration.
- getName() - Method in class com.google.errorprone.ErrorProneJavacPlugin
- getName() - Method in class com.google.errorprone.refaster.LocalVarBinding
- getName() - Method in class com.google.errorprone.refaster.RefasterRuleCompiler
- getName() - Method in class com.google.errorprone.refaster.UFreeIdent
- getName() - Method in class com.google.errorprone.refaster.UMethodIdent
- getName() - Method in class com.google.errorprone.refaster.UStaticIdent
- getName() - Method in class com.google.errorprone.refaster.UTypeVar
- getName() - Method in class com.google.errorprone.refaster.UVariableDecl
- getName(String) - Method in class com.google.errorprone.VisitorState
- getNameExpression() - Method in class com.google.errorprone.refaster.UVariableDecl
- getNames() - Method in class com.google.errorprone.VisitorState
- getNewCodeSnippet() - Method in class com.google.errorprone.fixes.AppliedFix
- getNormalizedEditDistance(String, String) - Method in class com.google.errorprone.names.TermEditDistance
- getNormalizedEditDistance(String, String, boolean, int, int, int) - Static method in class com.google.errorprone.names.NeedlemanWunschEditDistance
-
Returns a normalized edit distance between 0 and 1.
- getNullness(TreePath, Context) - Method in class com.google.errorprone.dataflow.nullnesspropagation.NullnessAnalysis
-
Returns the
Nullness
of the leaf ofexprPath
. - getNullness(TreePath, Context) - Method in class com.google.errorprone.dataflow.nullnesspropagation.TrustingNullnessAnalysis
-
Returns the
Nullness
of the leaf ofexprPath
. - getNullnessAnalysis() - Method in class com.google.errorprone.VisitorState
- getNullnessGenerics(MethodInvocationTree) - Method in class com.google.errorprone.dataflow.nullnesspropagation.inference.InferredNullability
-
Get inferred nullness qualifiers for method-generic type variables at a callsite.
- getNullnessValue(ExpressionTree, VisitorState, NullnessAnalysis) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns the
Nullness
for an expression as determined by the nullness dataflow analysis. - getNumber() - Method in enum com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.DiffCase
- getOffsetTokens(int, int) - Method in class com.google.errorprone.VisitorState
-
Returns the list of
Tokens.Token
s for source code between the given positions, offset by the start position. - getOffsetTokensForNode(Tree) - Method in class com.google.errorprone.VisitorState
-
Returns the list of
Tokens.Token
s for the givenJCTree
, offset by the start position of the tree within the overall source. - getOptionalBinding(Bindings.Key<V>) - Method in class com.google.errorprone.refaster.Inliner
- getParameterTypes() - Method in class com.google.errorprone.refaster.UMethodType
- getParserForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
- getParserForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
- getParserForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
- getParserForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
- getParserForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
- getPath() - Method in class com.google.errorprone.apply.SourceFile
-
Returns the path for this source file
- getPath() - Method in class com.google.errorprone.VisitorState
- getPos() - Method in class com.google.errorprone.util.ErrorProneComment
- getPreferredPosition() - Method in class com.google.errorprone.fixes.AdjustedPosition
- getPreferredPosition() - Method in class com.google.errorprone.fixes.FixedPosition
- getPreferredPosition() - Method in class com.google.errorprone.fixes.IndexedPosition
- getPrettyName(Symbol) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety
-
Gets a human-friendly name for the given
Symbol
to use in diagnostics. - getQuantifiedType() - Method in class com.google.errorprone.refaster.UForAll
- getRange(JCTree.JCCompilationUnit) - Method in class com.google.errorprone.refaster.TemplateMatch
- getRawMessage() - Method in class com.google.errorprone.matchers.Description
-
Returns the raw message, not including a link or check name.
- getReceiver(ExpressionTree) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns the receiver of an expression.
- getReceiverType(ExpressionTree) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns the type of a receiver of a method call expression.
- getRelevantFileName() - Method in class com.google.errorprone.apply.DescriptionBasedDiff
- getRelevantFileName() - Method in interface com.google.errorprone.apply.Diff
-
Gets the name of the file this difference applies to
- getRemainingArgs() - Method in class com.google.errorprone.ErrorProneOptions
- getReplacements(EndPosTable) - Method in interface com.google.errorprone.fixes.Fix
- getReplacements(EndPosTable) - Method in class com.google.errorprone.fixes.SuggestedFix
- getResultType(ExpressionTree) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns the type that this expression tree will evaluate to.
- getReturnType() - Method in class com.google.errorprone.refaster.UMethodType
- getReturnType(ExpressionTree) - Static method in class com.google.errorprone.util.ASTHelpers
-
Gives the return type of an ExpressionTree that represents a method select.
- getRootAssignable(MethodInvocationTree) - Static method in class com.google.errorprone.util.ASTHelpers
-
Find the root assignable expression of a chain of field accesses.
- getSerializedSize() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
- getSerializedSize() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
- getSerializedSize() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
- getSerializedSize() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
- getSerializedSize() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
- getSetOrEmpty(String) - Method in class com.google.errorprone.ErrorProneFlags
-
Gets the flag value for the given key as a comma-separated
Set
of Strings, or an empty set if unset. - getSeverityMap() - Method in class com.google.errorprone.ErrorProneOptions
- getShortDescription() - Method in interface com.google.errorprone.fixes.Fix
-
A short description which can be attached to the Fix to differentiate multiple fixes provided to the user.
- getShortDescription() - Method in class com.google.errorprone.fixes.SuggestedFix
- getSourceCode() - Method in class com.google.errorprone.VisitorState
-
Gets the current source file.
- getSourceForNode(Tree) - Method in class com.google.errorprone.VisitorState
-
Gets the original source code that represents the given node.
- getSourcePos(int) - Method in class com.google.errorprone.util.ErrorProneComment
-
Returns the source position of the character at index
index
in the comment text. - getSourceText() - Method in class com.google.errorprone.apply.SourceFile
-
Returns a copy of the code as a string.
- getSourceVersions() - Method in class com.google.errorprone.BaseErrorProneJavaCompiler
- getStandardFileManager(DiagnosticListener<? super JavaFileObject>, Locale, Charset) - Method in class com.google.errorprone.BaseErrorProneJavaCompiler
- getStartPos() - Method in class com.google.errorprone.apply.ImportStatements
-
Return the start position of the import statements.
- getStartPosition() - Method in class com.google.errorprone.fixes.AdjustedPosition
- getStartPosition() - Method in class com.google.errorprone.fixes.FixedPosition
- getStartPosition() - Method in class com.google.errorprone.fixes.IndexedPosition
- getStartPosition(Tree) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns the start position of the node.
- getStaticImportsToAdd() - Method in class com.google.errorprone.refaster.Inliner
- getStyle() - Method in class com.google.errorprone.util.ErrorProneComment
- getSuppliers(Class<? extends BugChecker>...) - Static method in class com.google.errorprone.scanner.BuiltInCheckerSuppliers
- getSuppliers(Iterable<Class<? extends BugChecker>>) - Static method in class com.google.errorprone.scanner.BuiltInCheckerSuppliers
- getSupportedSourceVersion() - Method in class com.google.errorprone.DocGenProcessor
- getSupportedSourceVersion() - Method in class com.google.errorprone.refaster.annotation.RequiredAnnotationProcessor
- getSwitchDefault(SwitchTree) - Static method in class com.google.errorprone.util.ASTHelpers
- getSymbol() - Method in class com.google.errorprone.refaster.LocalVarBinding
- getSymbol(ClassTree) - Static method in class com.google.errorprone.util.ASTHelpers
-
Gets the symbol for a class.
- getSymbol(MemberReferenceTree) - Static method in class com.google.errorprone.util.ASTHelpers
-
Gets the symbol for a member reference.
- getSymbol(MethodInvocationTree) - Static method in class com.google.errorprone.util.ASTHelpers
-
Gets the symbol for a method invocation.
- getSymbol(MethodTree) - Static method in class com.google.errorprone.util.ASTHelpers
-
Gets the symbol for a method.
- getSymbol(NewClassTree) - Static method in class com.google.errorprone.util.ASTHelpers
-
Gets the method symbol for a new class.
- getSymbol(PackageTree) - Static method in class com.google.errorprone.util.ASTHelpers
-
Gets the symbol for a package.
- getSymbol(Tree) - Static method in class com.google.errorprone.util.ASTHelpers
-
Gets the symbol for a tree.
- getSymbol(VariableTree) - Static method in class com.google.errorprone.util.ASTHelpers
-
Gets the symbol for a variable.
- getSymbolFromName(Name) - Method in class com.google.errorprone.VisitorState
-
Look up the class symbol for a given Name.
- getSymbolFromString(Symbol.ModuleSymbol, Name) - Method in class com.google.errorprone.VisitorState
- getSymbolFromString(String) - Method in class com.google.errorprone.VisitorState
- getSymbols(Predicate<Symbol>) - Method in class com.google.errorprone.util.ErrorProneScope
- getSymbols(Predicate<Symbol>, Scope.LookupKind) - Method in class com.google.errorprone.util.ErrorProneScope
- getSymbolsByName(Name, Predicate<Symbol>) - Method in class com.google.errorprone.util.ErrorProneScope
- getSymbolsByName(Name, Predicate<Symbol>, Scope.LookupKind) - Method in class com.google.errorprone.util.ErrorProneScope
- getSymtab() - Method in class com.google.errorprone.VisitorState
- getTags() - Method in class com.google.errorprone.BugCheckerInfo
- getTask(Writer, JavaFileManager, DiagnosticListener<? super JavaFileObject>, Iterable<String>, Iterable<String>, Iterable<? extends JavaFileObject>) - Method in class com.google.errorprone.BaseErrorProneJavaCompiler
- getText() - Method in class com.google.errorprone.util.ErrorProneComment
- getTextFromComment(ErrorProneComment) - Static method in class com.google.errorprone.util.Comments
-
Extract the text body from a comment.
- getThrownExceptions(Tree, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns the exceptions thrown by
tree
. - getThrownTypes() - Method in class com.google.errorprone.util.ASTHelpers.ScanThrownTypes
- getTokens() - Method in class com.google.errorprone.util.ErrorProneTokens
- getTokens(String, int, Context) - Static method in class com.google.errorprone.util.ErrorProneTokens
-
Returns the tokens for the given source text, including comments, indicating the offset of the source within the overall file.
- getTokens(String, Context) - Static method in class com.google.errorprone.util.ErrorProneTokens
-
Returns the tokens for the given source text, including comments.
- getTokensForNode(Tree) - Method in class com.google.errorprone.VisitorState
-
Returns the list of
Tokens.Token
s for the givenJCTree
. - getTopLevelTypeAttributes(Symbol) - Static method in class com.google.errorprone.util.MoreAnnotations
-
Returns "top-level" type annotations of the given symbol, including: Type annotations of the return type of a method.
- getTree() - Method in class com.google.errorprone.fixes.AdjustedPosition
- getTree() - Method in class com.google.errorprone.fixes.FixedPosition
- getTree() - Method in class com.google.errorprone.fixes.IndexedPosition
- getTreeMaker() - Method in class com.google.errorprone.VisitorState
- getType() - Method in class com.google.errorprone.apply.ImportOrganizer.Import
-
Return the type to import.
- getType() - Method in class com.google.errorprone.refaster.UVariableDecl
- getType(ClassTree) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns the
ClassType
for the given typeClassTree
ornull
if the type could not be determined. - getType(Tree) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns the
Type
of the given tree, ornull
if the type could not be determined. - getType(Type, boolean, List<Type>) - Method in class com.google.errorprone.VisitorState
-
Build an instance of a Type.
- getTypeArguments() - Method in class com.google.errorprone.refaster.UMethodInvocation
- getTypeFromString(String) - Method in class com.google.errorprone.VisitorState
-
Given the binary name of a class, returns the
Type
. - getTypes() - Method in class com.google.errorprone.VisitorState
- getTypeSubstitution(Type, Symbol) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns the mapping between type variables and their instantiations in the given type.
- getTypeVars() - Method in class com.google.errorprone.refaster.UForAll
- getUnifier() - Method in class com.google.errorprone.refaster.TemplateMatch
- getUnusedLookupKeys() - Method in class com.google.errorprone.DiagnosticTestHelper
-
Returns the lookup keys that weren't used.
- getUpperBound() - Method in class com.google.errorprone.refaster.UTypeVar
- getUpperBound(Type, Types) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns the upper bound of a type if it has one, or the type itself if not.
- getUpperBound(TypeVariable) - Static method in class com.google.errorprone.dataflow.nullnesspropagation.NullnessAnnotations
-
Returns any declared or implied bound for the given type variable, meaning this returns any annotation on the given type variable and otherwise returns
NullnessAnnotations.fromDefaultAnnotations(javax.lang.model.element.Element)
to find any default in scope of the given type variable. - getValue() - Method in class com.google.errorprone.refaster.ULiteral
- getValue(Attribute.Compound, String) - Static method in class com.google.errorprone.util.MoreAnnotations
-
Returns the value of the annotation element-value pair with the given name if it is explicitly set.
- getWorstCaseEditDistance(int, int) - Static method in class com.google.errorprone.names.LevenshteinEditDistance
-
Calculate the worst case distance between two strings with the given lengths
- getWorstCaseEditDistance(int, int, int, int, int) - Static method in class com.google.errorprone.names.NeedlemanWunschEditDistance
-
Return the worst case edit distance between strings of this length
- GLOBAL - Enum constant in enum com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule.RuleScope
-
The global scope.
- globalDefault(Optional<ResultUsePolicy>, Optional<ResultUsePolicy>) - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.Rules
-
Returns a simple global rule that always returns the given defaults for methods and constructors.
- GlobalRule() - Constructor for class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule.GlobalRule
- greatestLowerBound(Nullness) - Method in enum com.google.errorprone.dataflow.nullnesspropagation.Nullness
- GuardedBy - Annotation Type in com.google.errorprone.annotations.concurrent
-
Indicates that the annotated element should be used only while holding the specified lock.
- GuardedByBinder - Class in com.google.errorprone.bugpatterns.threadsafety
-
A binder from
@GuardedBy
annotations toGuardedByExpression
s. - GuardedByBinder.Resolver - Interface in com.google.errorprone.bugpatterns.threadsafety
-
A context containing the information necessary to resolve a
Symbol
from an AST node. - GuardedByChecker - Class in com.google.errorprone.bugpatterns.threadsafety
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - GuardedByChecker() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.GuardedByChecker
- GuardedByExpression - Class in com.google.errorprone.bugpatterns.threadsafety
-
The lock expression of an
@GuardedBy
annotation. - GuardedByExpression() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression
- GuardedByExpression.ClassLiteral - Class in com.google.errorprone.bugpatterns.threadsafety
-
A 'class' literal: ClassName.class
- GuardedByExpression.Erroneous - Class in com.google.errorprone.bugpatterns.threadsafety
-
A guarded by expression that could not be resolved.
- GuardedByExpression.Factory - Class in com.google.errorprone.bugpatterns.threadsafety
-
Makes
GuardedByExpression
s. - GuardedByExpression.Kind - Enum in com.google.errorprone.bugpatterns.threadsafety
-
GuardedByExpression
kind. - GuardedByExpression.LocalVariable - Class in com.google.errorprone.bugpatterns.threadsafety
-
A local variable (or parameter), resolved as part of a lock access expression.
- GuardedByExpression.Select - Class in com.google.errorprone.bugpatterns.threadsafety
-
The member access expression for a field or method.
- GuardedByExpression.ThisLiteral - Class in com.google.errorprone.bugpatterns.threadsafety
-
A simple 'this literal.
- GuardedByExpression.TypeLiteral - Class in com.google.errorprone.bugpatterns.threadsafety
-
The base expression for a static member select on a class literal (e.g.
- GuardedByFlags - Class in com.google.errorprone.bugpatterns.threadsafety
-
Flags that control the behavior of threadsafety utils to facilitate rolling out new functionality.
- GuardedByFlags() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.GuardedByFlags
- GuardedBySymbolResolver - Class in com.google.errorprone.bugpatterns.threadsafety
-
A symbol resolver used while binding guardedby expressions from string literals.
- GuardedByUtils - Class in com.google.errorprone.bugpatterns.threadsafety
- guardString() - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.Erroneous
- GUICE_BINDING_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
- GUICE_INJECT_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
- GUICE_MAP_KEY_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
- GUICE_PROVIDES_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
- GUICE_SCOPE_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
- GuiceNestedCombine - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - GuiceNestedCombine() - Constructor for class com.google.errorprone.bugpatterns.GuiceNestedCombine
H
- handleError(Suppressible, Throwable) - Method in class com.google.errorprone.scanner.ErrorProneScanner
-
Handles an exception thrown by an individual BugPattern.
- handleError(Suppressible, Throwable) - Method in class com.google.errorprone.scanner.Scanner
-
Handles an exception thrown by an individual check.
- handleFix(Fix) - Method in class com.google.errorprone.apply.DescriptionBasedDiff
- handleGuardedAccess(ExpressionTree, GuardedByExpression, HeldLockSet) - Method in interface com.google.errorprone.bugpatterns.threadsafety.HeldLockAnalyzer.LockEventListener
-
Handles a guarded member access.
- HardCodedSdCardPath - Class in com.google.errorprone.bugpatterns.android
- HardCodedSdCardPath() - Constructor for class com.google.errorprone.bugpatterns.android.HardCodedSdCardPath
- HAS_INJECT_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
- HAS_MUST_BE_CLOSED_ANNOTATION - Static variable in class com.google.errorprone.bugpatterns.AbstractMustBeClosedChecker
-
Matches trees annotated with
MustBeClosed
. - hasAnnotation(Tree, Class<? extends Annotation>, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
-
Deprecated.prefer
ASTHelpers.hasAnnotation(Symbol, String, VisitorState)
to avoid needing a runtime dependency on the annotation class, and to prevent issues if there is skew between the definition of the annotation on the runtime and compile-time classpaths - hasAnnotation(Tree, String, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
-
Check for the presence of an annotation, considering annotation inheritance.
- hasAnnotation(Symbol, Class<? extends Annotation>, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
-
Deprecated.prefer
ASTHelpers.hasAnnotation(Symbol, String, VisitorState)
to avoid needing a runtime dependency on the annotation class, and to prevent issues if there is skew between the definition of the annotation on the runtime and compile-time classpaths - hasAnnotation(Symbol, String, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
-
Determines whether a symbol has an annotation of the given type.
- hasAnnotation(Class<? extends Annotation>) - Static method in class com.google.errorprone.matchers.Matchers
-
Determines whether an expression has an annotation of the given class.
- hasAnnotation(String) - Static method in class com.google.errorprone.matchers.Matchers
-
Determines whether an expression has an annotation of the given type.
- hasAnnotation(TypeMirror) - Static method in class com.google.errorprone.matchers.Matchers
-
Determines if an expression has an annotation referred to by the given mirror.
- hasAnnotationOnAnyOverriddenMethod(String) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches if a method or any method it overrides has an annotation of the given type.
- hasAnnotationWithSimpleName(String) - Static method in class com.google.errorprone.matchers.Matchers
-
Determines whether an expression has an annotation with the given simple name.
- hasAnyAnnotation(Class<? extends Annotation>...) - Static method in class com.google.errorprone.matchers.Matchers
- hasAnyAnnotation(List<? extends TypeMirror>) - Static method in class com.google.errorprone.matchers.Matchers
- hasArguments(ChildMultiMatcher.MatchType, Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches if the given matcher matches all of/any of the arguments to this method invocation.
- HasArguments - Class in com.google.errorprone.matchers
-
Matches if the given matcher matches all of/any of the parameters to this method.
- HasArguments(ChildMultiMatcher.MatchType, Matcher<ExpressionTree>) - Constructor for class com.google.errorprone.matchers.HasArguments
- hasArgumentWithValue(String, Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an Annotation AST node if the argument to the annotation with the given name has a value which matches the given matcher.
- hasCompileTimeConstantAnnotation(VisitorState, Symbol) - Static method in class com.google.errorprone.matchers.CompileTimeConstantExpressionMatcher
- hasDirectAnnotationWithSimpleName(Tree, String) - Static method in class com.google.errorprone.util.ASTHelpers
-
Check for the presence of an annotation with a specific simple name directly on this symbol.
- hasDirectAnnotationWithSimpleName(Symbol.MethodSymbol, String) - Static method in class com.google.errorprone.util.ASTHelpers
- hasDirectAnnotationWithSimpleName(Symbol.VarSymbol, String) - Static method in class com.google.errorprone.util.ASTHelpers
- hasDirectAnnotationWithSimpleName(Symbol, String) - Static method in class com.google.errorprone.util.ASTHelpers
-
Check for the presence of an annotation with the given simple name directly on this symbol or its type.
- hasEverythingDiff() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
-
.devtools.staticanalysis.errorprone.apidiff.EverythingDiff everything_diff = 1;
- hasEverythingDiff() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
-
.devtools.staticanalysis.errorprone.apidiff.EverythingDiff everything_diff = 1;
- hasEverythingDiff() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiffOrBuilder
-
.devtools.staticanalysis.errorprone.apidiff.EverythingDiff everything_diff = 1;
- hasExplicitSource(Tree, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns whether the given tree has an explicit source code representation.
- hashCode() - Method in class com.google.errorprone.BugCheckerInfo
- hashCode() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
- hashCode() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
- hashCode() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
- hashCode() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
- hashCode() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
- hashCode() - Method in class com.google.errorprone.bugpatterns.BugChecker
- hashCode() - Method in class com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions.ConstantEquals
- hashCode() - Method in class com.google.errorprone.fixes.SuggestedFix
- hashCode() - Method in class com.google.errorprone.refaster.Bindings.Key
- hashCode() - Method in class com.google.errorprone.refaster.UTypeVar
- hashCodeMethodDeclaration() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches
hashCode
method declaration. - HashtableContains - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - HashtableContains() - Constructor for class com.google.errorprone.bugpatterns.HashtableContains
- hasIdentifier(Matcher<IdentifierTree>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches any AST that contains an identifier with a certain property.
- HasIdentifier - Class in com.google.errorprone.matchers
-
Matches if the given matcher matches all of the identifiers under this syntax tree.
- HasIdentifier(Matcher<IdentifierTree>) - Constructor for class com.google.errorprone.matchers.HasIdentifier
- hasImplicitType(VariableTree, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns whether this is a
var
or a lambda parameter that has no explicit type. - hasInjectAnnotation() - Static method in class com.google.errorprone.matchers.InjectMatchers
- hasJUnit4AfterAnnotations - Static variable in class com.google.errorprone.matchers.JUnitMatchers
- hasJUnit4BeforeAnnotations - Static variable in class com.google.errorprone.matchers.JUnitMatchers
- hasJUnit4TestCases - Static variable in class com.google.errorprone.matchers.JUnitMatchers
-
Match a class which has one or more methods with a JUnit 4 @Test annotation.
- hasJUnit4TestRunner - Static variable in class com.google.errorprone.matchers.JUnitMatchers
- hasJUnitAnnotation(MethodTree, VisitorState) - Static method in class com.google.errorprone.matchers.JUnitMatchers
-
Checks if a method, or any overridden method, is annotated with any annotation from the org.junit package.
- hasMemberDiff() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
-
.devtools.staticanalysis.errorprone.apidiff.MemberDiff member_diff = 2;
- hasMemberDiff() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
-
.devtools.staticanalysis.errorprone.apidiff.MemberDiff member_diff = 2;
- hasMemberDiff() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiffOrBuilder
-
.devtools.staticanalysis.errorprone.apidiff.MemberDiff member_diff = 2;
- hasMethod(Matcher<MethodTree>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches a class in which at least one method matches the given methodMatcher.
- hasModifier(Modifier) - Static method in class com.google.errorprone.matchers.Matchers
-
Returns true if the Tree node has the expected
Modifier
. - hasName() - Method in class com.google.errorprone.util.ErrorProneToken
- hasNoExplicitType(VariableTree, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
-
Deprecated.
- hasNullableAnnotation(Symbol) - Static method in class com.google.errorprone.dataflow.nullnesspropagation.TrustingNullnessAnalysis
- hasOverloadWithOnlyOneParameter(Symbol.MethodSymbol, Name, Type, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns whether
existingMethod
has an overload (or "nearly" an overload) with the giventargetMethodName
, and only a single parameter of typeonlyParameterType
. - hasProvidesAnnotation() - Static method in class com.google.errorprone.matchers.InjectMatchers
- hasRadix() - Method in class com.google.errorprone.util.ErrorProneToken
- hasSideEffect(ExpressionTree) - Static method in class com.google.errorprone.util.SideEffectAnalysis
-
Tries to establish whether
expression
is side-effect free. - hasSourceRetention(Element) - Static method in class com.google.errorprone.bugpatterns.inject.ElementPredicates
- hasStringVal() - Method in class com.google.errorprone.util.ErrorProneToken
- hasTestNgAnnotation(ClassTree) - Static method in class com.google.errorprone.matchers.TestNgMatchers
-
Checks if a class is annotated with any annotation from the org.testng package.
- hasTestNgAnnotation(MethodTree, VisitorState) - Static method in class com.google.errorprone.matchers.TestNgMatchers
-
Checks if a method, or any overridden method, is annotated with any annotation from the org.testng package.
- hasThreadSafeElementAnnotation(Symbol.TypeVariableSymbol) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety
-
Returns whether the given type parameter's declaration is annotated with
ThreadSafety.containerOfAnnotation
indicating its type-safety determines the type-safety of the outer class. - hasThreadSafeTypeParameterAnnotation(Symbol.TypeVariableSymbol) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety
-
Returns whether the given type parameter's declaration is annotated with
ThreadSafety.typeParameterAnnotation
indicating it will only ever be instantiated with thread-safe types. - heap() - Method in class com.google.errorprone.dataflow.AccessPathStore
- HeldLockAnalyzer - Class in com.google.errorprone.bugpatterns.threadsafety
-
A method body analyzer.
- HeldLockAnalyzer.ExpectedLockCalculator - Class in com.google.errorprone.bugpatterns.threadsafety
-
Utility for discovering the lock expressions that needs to be held when accessing specific guarded members.
- HeldLockAnalyzer.LockEventListener - Interface in com.google.errorprone.bugpatterns.threadsafety
-
Listener interface for accesses to guarded members.
- HidingField - Class in com.google.errorprone.bugpatterns
- HidingField() - Constructor for class com.google.errorprone.bugpatterns.HidingField
I
- ICCProfileGetInstance - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - ICCProfileGetInstance() - Constructor for class com.google.errorprone.bugpatterns.ICCProfileGetInstance
- id() - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.ExternalCanIgnoreReturnValue
- id() - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.PackagesRule
- id() - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule
-
An ID for uniquely identifying this rule.
- IDEA_ORGANIZER - Static variable in interface com.google.errorprone.apply.ImportOrganizer
-
An
ImportOrganizer
that organizes imports based on the default format provided by IntelliJ IDEA. - IdeaImportOrganizer - Class in com.google.errorprone.apply
-
Organizes imports based on the default format provided by IntelliJ IDEA.
- IdeaImportOrganizer() - Constructor for class com.google.errorprone.apply.IdeaImportOrganizer
- identifier() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiff.ClassMemberKey
-
The simple name of the member.
- IDENTIFIER_FIELD_NUMBER - Static variable in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
- IdentifierName - Class in com.google.errorprone.bugpatterns
-
Flags a few ways in which member names may violate the style guide.
- IdentityBinaryExpression - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - IdentityBinaryExpression() - Constructor for class com.google.errorprone.bugpatterns.IdentityBinaryExpression
- IdentityHashMapBoxing - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - IdentityHashMapBoxing() - Constructor for class com.google.errorprone.bugpatterns.IdentityHashMapBoxing
- IdentityHashMapUsage - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - IdentityHashMapUsage() - Constructor for class com.google.errorprone.bugpatterns.IdentityHashMapUsage
- identitySupplier(T) - Static method in class com.google.errorprone.suppliers.Suppliers
-
Supplies what was given.
- IgnoredPureGetter - Class in com.google.errorprone.bugpatterns
-
Flags ignored return values from pure getters.
- ignoreLargeCodeGenerators() - Method in class com.google.errorprone.ErrorProneOptions
- ignoreParens(Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
-
Ignores any number of parenthesis wrapping an expression and then applies the passed matcher to that expression.
- ignoreUnknownChecks() - Method in class com.google.errorprone.ErrorProneOptions
- IllegalGuardedBy - Exception Class in com.google.errorprone.bugpatterns.threadsafety
-
An error that occurred during the parsing or binding of a GuardedBy expression.
- IllegalGuardedBy(String) - Constructor for exception class com.google.errorprone.bugpatterns.threadsafety.IllegalGuardedBy
- Immutable - Annotation Type in com.google.errorprone.annotations
-
The class to which this annotation is applied is immutable.
- IMMUTABLE_COLLECTION - Enum constant in enum com.google.errorprone.bugpatterns.TypesWithUndefinedEquality
- IMMUTABLE_MULTIMAP - Enum constant in enum com.google.errorprone.bugpatterns.TypesWithUndefinedEquality
- ImmutableAnalysis - Class in com.google.errorprone.bugpatterns.threadsafety
-
Analyzes types for deep immutability.
- ImmutableAnalysis.ViolationReporter - Interface in com.google.errorprone.bugpatterns.threadsafety
-
Accepts
violations
that are found during the analysis. - ImmutableAnnotationChecker - Class in com.google.errorprone.bugpatterns.threadsafety
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - ImmutableChecker - Class in com.google.errorprone.bugpatterns.threadsafety
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - ImmutableCollections - Class in com.google.errorprone.bugpatterns
-
Common utility functions for immutable collections.
- ImmutableEnumChecker - Class in com.google.errorprone.bugpatterns.threadsafety
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - ImmutableMemberCollection - Class in com.google.errorprone.bugpatterns
-
Refactoring to suggest Immutable types for member collection that are not mutated.
- ImmutableMemberCollection() - Constructor for class com.google.errorprone.bugpatterns.ImmutableMemberCollection
- ImmutableRefactoring - Class in com.google.errorprone.bugpatterns.threadsafety
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - ImmutableSetForContains - Class in com.google.errorprone.bugpatterns
-
Refactoring to suggest using
private static final
ImmutableSet
overImmutableList
when using only contains, containsAll and isEmpty. - ImmutableSetForContains() - Constructor for class com.google.errorprone.bugpatterns.ImmutableSetForContains
- ImmutableTypeParameter - Annotation Type in com.google.errorprone.annotations
-
The type parameter to which this annotation is applied should only be instantiated with immutable types.
- ImplementAssertionWithChaining - Class in com.google.errorprone.bugpatterns
-
Migrates Truth subjects from a manual "test and fail" approach to one using
Subject.check(...)
. - ImplementAssertionWithChaining() - Constructor for class com.google.errorprone.bugpatterns.ImplementAssertionWithChaining
- implementsEquals(Type, VisitorState) - Static method in class com.google.errorprone.bugpatterns.ReferenceEquality
-
Check if the method declares or inherits an implementation of .equals()
- implicitToStringFix(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractToString
-
Constructs a fix for an implicit toString call, e.g.
- implicitToStringFix(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AnnotationMirrorToString
- implicitToStringFix(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AnnotationValueToString
- implicitToStringFix(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ArrayToString
- implicitToStringFix(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.LiteProtoToString
- implicitToStringFix(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ObjectToString
- implicitToStringFix(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.StreamToString
- implicitToStringFix(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.SymbolToString
- implicitToStringFix(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.TreeToString
- implicitToStringFix(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.TypeToString
- Import() - Constructor for class com.google.errorprone.apply.ImportOrganizer.Import
- IMPORT_CLASS_DIRECTLY - Enum constant in enum com.google.errorprone.refaster.ImportPolicy
-
Import nested classes directly, and qualify static references from the class level.
- IMPORT_TOP_LEVEL - Enum constant in enum com.google.errorprone.refaster.ImportPolicy
-
Import the outermost class and explicitly qualify references below that.
- importedName() - Method in class com.google.errorprone.bugpatterns.StaticImports.StaticImportInfo
-
The fully qualified name used to import the type (possibly non-canonical).
- ImportOrderParser - Class in com.google.errorprone
-
Parse import order strings.
- ImportOrganizer - Interface in com.google.errorprone.apply
-
Organizes import statements when patching files.
- ImportOrganizer.Import - Class in com.google.errorprone.apply
-
Represents an import.
- ImportOrganizer.OrganizedImports - Class in com.google.errorprone.apply
-
Provides support for building a list of imports from groups and formatting it as a block of imports.
- importPolicy() - Method in class com.google.errorprone.refaster.Inliner
- ImportPolicy - Enum in com.google.errorprone.refaster
-
Policy specifying when and how to import classes when inlining types.
- imports() - Element in annotation type com.google.errorprone.annotations.InlineMe
-
The new imports to (optionally) add to the caller.
- importsHaveChanged() - Method in class com.google.errorprone.apply.ImportStatements
- importStatement() - Method in class com.google.errorprone.bugpatterns.StaticImports.StaticImportInfo
-
Builds the canonical import statement for the type.
- ImportStatements - Class in com.google.errorprone.apply
-
Represents a list of import statements.
- ImpossibleNullComparison - Class in com.google.errorprone.bugpatterns
-
Matches comparison of proto fields to
null
. - Incomparable - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - Incomparable() - Constructor for class com.google.errorprone.bugpatterns.Incomparable
- IncompatibleArgumentType - Class in com.google.errorprone.bugpatterns.collectionincompatibletype
- IncompatibleModifiers - Annotation Type in com.google.errorprone.annotations
-
Annotation declaring that the target annotation is incompatible with any one of the provided modifiers.
- IncompatibleModifiersChecker - Class in com.google.errorprone.bugpatterns
- IncompatibleModifiersChecker() - Constructor for class com.google.errorprone.bugpatterns.IncompatibleModifiersChecker
- InconsistentCapitalization - Class in com.google.errorprone.bugpatterns
-
Checker for variables under the same scope that only differ in capitalization.
- InconsistentCapitalization() - Constructor for class com.google.errorprone.bugpatterns.InconsistentCapitalization
- InconsistentHashCode - Class in com.google.errorprone.bugpatterns
-
Looks for hashCode implementations which are inconsistent with equals.
- InconsistentHashCode() - Constructor for class com.google.errorprone.bugpatterns.InconsistentHashCode
- InconsistentOverloads - Class in com.google.errorprone.bugpatterns.overloading
-
A
BugChecker
that detects inconsistently overloaded methods in Java classes. - InconsistentOverloads() - Constructor for class com.google.errorprone.bugpatterns.overloading.InconsistentOverloads
- IncorrectMainMethod - Class in com.google.errorprone.bugpatterns
-
Bugpattern for incorrect overloads of main.
- IncorrectMainMethod() - Constructor for class com.google.errorprone.bugpatterns.IncorrectMainMethod
- incrementCounter(BugChecker, String) - Method in class com.google.errorprone.VisitorState
-
Increment the counter for a combination of
bugChecker
's canonical name andkey
by 1. - incrementCounter(BugChecker, String, int) - Method in class com.google.errorprone.VisitorState
-
Increment the counter for a combination of
bugChecker
's canonical name andkey
bycount
. - incrementCounter(String) - Method in interface com.google.errorprone.StatisticsCollector
-
Adds 1 to the counter for
key
. - incrementCounter(String, int) - Method in interface com.google.errorprone.StatisticsCollector
-
Adds
count
to the counter forkey
. - IncrementInForLoopAndHeader - Class in com.google.errorprone.bugpatterns
- IncrementInForLoopAndHeader() - Constructor for class com.google.errorprone.bugpatterns.IncrementInForLoopAndHeader
- IndexedPosition - Class in com.google.errorprone.fixes
-
Describes a position that only has a start and end index.
- IndexedPosition(int, int) - Constructor for class com.google.errorprone.fixes.IndexedPosition
- IndexOfChar - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - IndexOfChar() - Constructor for class com.google.errorprone.bugpatterns.IndexOfChar
- InexactVarargsConditional - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - InexactVarargsConditional() - Constructor for class com.google.errorprone.bugpatterns.InexactVarargsConditional
- infer() - Method in class com.google.errorprone.refaster.Inliner
- InferredNullability - Class in com.google.errorprone.dataflow.nullnesspropagation.inference
-
Results of running
NullnessQualifierInference
over a method. - InfiniteRecursion - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - InfiniteRecursion() - Constructor for class com.google.errorprone.bugpatterns.InfiniteRecursion
- InheritDoc - Class in com.google.errorprone.bugpatterns.javadoc
-
Matches invalid usage of @inheritDoc.
- InheritDoc() - Constructor for class com.google.errorprone.bugpatterns.javadoc.InheritDoc
- init(JavacTask, String...) - Method in class com.google.errorprone.ErrorProneJavacPlugin
- init(JavacTask, String...) - Method in class com.google.errorprone.refaster.RefasterRuleCompiler
- init(ProcessingEnvironment) - Method in class com.google.errorprone.DocGenProcessor
- initializationTime() - Method in class com.google.errorprone.ErrorProneTimings
-
Returns the elapsed initialization time.
- initializationTimeSpan() - Method in class com.google.errorprone.ErrorProneTimings
-
Creates a timing span for initialization.
- InitializeInline - Class in com.google.errorprone.bugpatterns
-
Bugpattern to encourage initializing effectively final variables inline with their declaration, if possible.
- InitializeInline() - Constructor for class com.google.errorprone.bugpatterns.InitializeInline
- InjectedConstructorAnnotations - Class in com.google.errorprone.bugpatterns.inject
-
A checker for injected constructors with @Inject(optional=true) or binding annotations.
- InjectedConstructorAnnotations() - Constructor for class com.google.errorprone.bugpatterns.inject.InjectedConstructorAnnotations
- InjectMatchers - Class in com.google.errorprone.matchers
-
Utility constants and matchers related to dependency injection.
- InjectOnBugCheckers - Class in com.google.errorprone.bugpatterns
-
A BugPattern; see the summary.
- InjectOnBugCheckers() - Constructor for class com.google.errorprone.bugpatterns.InjectOnBugCheckers
- InjectOnConstructorOfAbstractClass - Class in com.google.errorprone.bugpatterns.inject
- InjectOnConstructorOfAbstractClass() - Constructor for class com.google.errorprone.bugpatterns.inject.InjectOnConstructorOfAbstractClass
- InjectOnFinalField - Class in com.google.errorprone.bugpatterns.inject.guice
- InjectOnFinalField() - Constructor for class com.google.errorprone.bugpatterns.inject.guice.InjectOnFinalField
- InjectOnMemberAndConstructor - Class in com.google.errorprone.bugpatterns.inject
-
Checks if class constructor and members are both annotated as @Inject.
- InjectOnMemberAndConstructor() - Constructor for class com.google.errorprone.bugpatterns.inject.InjectOnMemberAndConstructor
- inline(Inliner) - Method in class com.google.errorprone.refaster.UExpression
- inline(Inliner) - Method in class com.google.errorprone.refaster.UTree
- inline(Inliner) - Method in class com.google.errorprone.refaster.UType
- inline(Inliner) - Method in class com.google.errorprone.refaster.StringName
- inline(Inliner) - Method in class com.google.errorprone.refaster.UAnyOf
- inline(Inliner) - Method in class com.google.errorprone.refaster.UClassType
- inline(Inliner) - Method in class com.google.errorprone.refaster.UForAll
- inline(Inliner) - Method in class com.google.errorprone.refaster.UFreeIdent
- inline(Inliner) - Method in class com.google.errorprone.refaster.UIntersectionClassType
- inline(Inliner) - Method in class com.google.errorprone.refaster.ULiteral
- inline(Inliner) - Method in class com.google.errorprone.refaster.UMemberSelect
- inline(Inliner) - Method in class com.google.errorprone.refaster.UMethodIdent
- inline(Inliner) - Method in class com.google.errorprone.refaster.UMethodInvocation
- inline(Inliner) - Method in class com.google.errorprone.refaster.UMethodType
- inline(Inliner) - Method in class com.google.errorprone.refaster.UPlaceholderExpression
- inline(Inliner) - Method in class com.google.errorprone.refaster.UReturn
- inline(Inliner) - Method in class com.google.errorprone.refaster.UStaticIdent
- inline(Inliner) - Method in class com.google.errorprone.refaster.UTypeVar
- inline(Inliner) - Method in class com.google.errorprone.refaster.UTypeVar.TypeWithExpression
- inline(Inliner) - Method in class com.google.errorprone.refaster.UVariableDecl
- inlineAsTree(Type) - Method in class com.google.errorprone.refaster.Inliner
-
Inlines the syntax tree representing the specified type.
- inlineAsVar(UTypeVar) - Method in class com.google.errorprone.refaster.Inliner
- InlineFormatString - Class in com.google.errorprone.bugpatterns.formatstring
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - InlineFormatString() - Constructor for class com.google.errorprone.bugpatterns.formatstring.InlineFormatString
- inlineImplicitType(Inliner) - Method in class com.google.errorprone.refaster.UVariableDecl
- inlineList(Iterable<? extends Inlineable<? extends R>>) - Method in class com.google.errorprone.refaster.Inliner
- InlineMe - Annotation Type in com.google.errorprone.annotations
-
Indicates that callers of this API should be inlined.
- InlineMeValidationDisabled - Annotation Type in com.google.errorprone.annotations
-
An annotation that disables validation of the
InlineMe
annotation's correctness (i.e.: that it accurately represents an inlining of the annotated method). - Inliner - Class in com.google.errorprone.bugpatterns.inlineme
-
Checker that performs the inlining at call-sites (where the invoked APIs are annotated as
@InlineMe
). - Inliner - Class in com.google.errorprone.refaster
-
A context representing all the dependencies necessary to reconstruct a pretty-printable source tree from a
UTree
based on a set of substitutions. - Inliner(Context, Bindings) - Constructor for class com.google.errorprone.refaster.Inliner
- inlineStatements(Inliner) - Method in class com.google.errorprone.refaster.UReturn
- inlineStatements(Inliner) - Method in class com.google.errorprone.refaster.UVariableDecl
- inlineStatements(Inliner) - Method in interface com.google.errorprone.refaster.UStatement
- InlineTrivialConstant - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - InlineTrivialConstant() - Constructor for class com.google.errorprone.bugpatterns.InlineTrivialConstant
- inLoop() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches if the given tree is inside a loop.
- InputStreamSlowMultibyteRead - Class in com.google.errorprone.bugpatterns
-
Checks that InputStreams should override int read(byte[], int, int);
- InputStreamSlowMultibyteRead() - Constructor for class com.google.errorprone.bugpatterns.InputStreamSlowMultibyteRead
- inSamePackage(Symbol, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
-
Return true if the given symbol is defined in the current package.
- InsecureCipherMode - Class in com.google.errorprone.bugpatterns
- InsecureCipherMode() - Constructor for class com.google.errorprone.bugpatterns.InsecureCipherMode
- INSIDE_GUICE_MODULE - Static variable in class com.google.errorprone.matchers.InjectMatchers
- instance() - Static method in class com.google.errorprone.matchers.CompileTimeConstantExpressionMatcher
- instance(Context) - Static method in class com.google.errorprone.dataflow.nullnesspropagation.NullnessAnalysis
-
Retrieve an instance of
NullnessAnalysis
from thecontext
. - instance(Context) - Static method in class com.google.errorprone.dataflow.nullnesspropagation.TrustingNullnessAnalysis
-
Retrieve an instance of
TrustingNullnessAnalysis
from thecontext
. - instance(Context) - Static method in class com.google.errorprone.ErrorProneTimings
- instance(Context) - Static method in class com.google.errorprone.JavacInvocationInstance
- instance(Context) - Static method in enum com.google.errorprone.refaster.ImportPolicy
- INSTANCE - Enum constant in enum com.google.errorprone.matchers.method.MethodInvocationMatcher.MethodKind
- INSTANCE - Enum constant in enum com.google.errorprone.predicates.type.Array
- INSTANCE - Static variable in class com.google.errorprone.refaster.ControlFlowVisitor
- instanceEqualsInvocation() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches calls to the method
Object.equals(Object)
or any override of that method. - instanceField(String, String) - Static method in class com.google.errorprone.matchers.FieldMatchers
- instanceHashCodeInvocation() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches calls to the method
Object.hashCode()
or any override of that method. - instanceMethod() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an instance method.
- instanceMethod() - Static method in class com.google.errorprone.matchers.method.MethodMatchers
- InstanceOfAndCastMatchWrongType - Class in com.google.errorprone.bugpatterns
- InstanceOfAndCastMatchWrongType() - Constructor for class com.google.errorprone.bugpatterns.InstanceOfAndCastMatchWrongType
- InstantTemporalUnit - Class in com.google.errorprone.bugpatterns.time
-
Bans calls to
Instant
APIs where theTemporalUnit
is not one of:NANOS
,MICROS
,MILLIS
,SECONDS
,MINUTES
,HOURS
,HALF_DAYS
, orDAYS
. - InstantTemporalUnit() - Constructor for class com.google.errorprone.bugpatterns.time.InstantTemporalUnit
- inSynchronized() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches if this Tree is enclosed by either a synchronized block or a synchronized method.
- INT_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
- InterfaceWithOnlyStatics - Class in com.google.errorprone.bugpatterns
-
Bugpattern to detect interfaces used only to store static fields/methods.
- InterfaceWithOnlyStatics() - Constructor for class com.google.errorprone.bugpatterns.InterfaceWithOnlyStatics
- internalGetFieldAccessorTable() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
- internalGetFieldAccessorTable() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
- internalGetFieldAccessorTable() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
- internalGetFieldAccessorTable() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
- internalGetFieldAccessorTable() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
- internalGetFieldAccessorTable() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
- internalGetFieldAccessorTable() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
- internalGetFieldAccessorTable() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
- internalGetFieldAccessorTable() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
- internalGetFieldAccessorTable() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
- InterruptedExceptionSwallowed - Class in com.google.errorprone.bugpatterns
-
Checks for cases where an
InterruptedException
is caught as part of a catch block catching a supertype, and not specially handled. - InterruptedExceptionSwallowed() - Constructor for class com.google.errorprone.bugpatterns.InterruptedExceptionSwallowed
- Interruption - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - Interruption() - Constructor for class com.google.errorprone.bugpatterns.Interruption
- intLit(int) - Static method in class com.google.errorprone.refaster.ULiteral
- intLiteral(int) - Static method in class com.google.errorprone.matchers.Matchers
- IntLongMath - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - IntLongMath() - Constructor for class com.google.errorprone.bugpatterns.IntLongMath
- InvalidBlockTag - Class in com.google.errorprone.bugpatterns.javadoc
-
Matches invalid Javadoc tags, and tries to suggest fixes.
- InvalidBlockTag() - Constructor for class com.google.errorprone.bugpatterns.javadoc.InvalidBlockTag
- InvalidCommandLineOptionException - Exception Class in com.google.errorprone
- InvalidCommandLineOptionException(String) - Constructor for exception class com.google.errorprone.InvalidCommandLineOptionException
- InvalidInlineTag - Class in com.google.errorprone.bugpatterns.javadoc
-
Matches invalid Javadoc tags, and tries to suggest fixes.
- InvalidInlineTag() - Constructor for class com.google.errorprone.bugpatterns.javadoc.InvalidInlineTag
- InvalidJavaTimeConstant - Class in com.google.errorprone.bugpatterns.time
-
This checker errors on calls to
java.time
methods using values that are guaranteed to throw aDateTimeException
. - InvalidJavaTimeConstant() - Constructor for class com.google.errorprone.bugpatterns.time.InvalidJavaTimeConstant
- InvalidLink - Class in com.google.errorprone.bugpatterns.javadoc
-
Finds some common errors in @link tags.
- InvalidLink() - Constructor for class com.google.errorprone.bugpatterns.javadoc.InvalidLink
- InvalidParam - Class in com.google.errorprone.bugpatterns.javadoc
-
Matches incorrect Javadoc @param tags.
- InvalidParam() - Constructor for class com.google.errorprone.bugpatterns.javadoc.InvalidParam
- InvalidPatternSyntax - Class in com.google.errorprone.bugpatterns
- InvalidPatternSyntax() - Constructor for class com.google.errorprone.bugpatterns.InvalidPatternSyntax
- InvalidTargetingOnScopingAnnotation - Class in com.google.errorprone.bugpatterns.inject
- InvalidTargetingOnScopingAnnotation() - Constructor for class com.google.errorprone.bugpatterns.inject.InvalidTargetingOnScopingAnnotation
- InvalidThrows - Class in com.google.errorprone.bugpatterns.javadoc
-
Matches errors in Javadoc @throws tags.
- InvalidThrows() - Constructor for class com.google.errorprone.bugpatterns.javadoc.InvalidThrows
- InvalidThrowsLink - Class in com.google.errorprone.bugpatterns.javadoc
-
Matches misuse of link tags within throws tags.
- InvalidThrowsLink() - Constructor for class com.google.errorprone.bugpatterns.javadoc.InvalidThrowsLink
- InvalidTimeZoneID - Class in com.google.errorprone.bugpatterns
- InvalidTimeZoneID() - Constructor for class com.google.errorprone.bugpatterns.InvalidTimeZoneID
- InvalidZoneId - Class in com.google.errorprone.bugpatterns
-
Validates ZoneId.
- InvalidZoneId() - Constructor for class com.google.errorprone.bugpatterns.InvalidZoneId
- invocationResultIgnored(String, String, String) - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.ErrorMessages
-
Error message for when the result of a method or constructor invocation is ignored, and the
ResultUsePolicy
of the invoked method or constructor evaluates toResultUsePolicy.EXPECTED
. - IS_APPLICATION_OF_AT_INJECT - Static variable in class com.google.errorprone.matchers.InjectMatchers
- IS_APPLICATION_OF_GUICE_INJECT - Static variable in class com.google.errorprone.matchers.InjectMatchers
- IS_APPLICATION_OF_JAVAX_INJECT - Static variable in class com.google.errorprone.matchers.InjectMatchers
- IS_BINDING_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
- IS_DAGGER_COMPONENT - Static variable in class com.google.errorprone.matchers.InjectMatchers
- IS_DAGGER_COMPONENT_OR_MODULE - Static variable in class com.google.errorprone.matchers.InjectMatchers
- IS_INTERFACE - Static variable in class com.google.errorprone.matchers.Matchers
- IS_SCOPING_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
- isAbstract(Symbol.MethodSymbol) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns true if the given method symbol is abstract.
- isAllowed(ExpressionTree, VisitorState) - Method in class com.google.errorprone.matchers.UnusedReturnValueMatcher
-
Returns
true
if the given expression is allowed to have an unused return value based on its context. - isAmbiguousJUnitVersion - Static variable in class com.google.errorprone.matchers.JUnitMatchers
-
Matches classes which have attributes of both JUnit 3 and 4 classes.
- isAndroidCompatible() - Method in class com.google.errorprone.VisitorState
-
Returns true if the compilation is targeting Android.
- isAnnotation(VisitorState, Type) - Static method in class com.google.errorprone.bugpatterns.threadsafety.WellKnownMutability
-
Returns true if the type is an annotation.
- isAnyModule() - Static method in class com.google.errorprone.bugpatterns.inject.dagger.DaggerAnnotations
- isArray() - Static method in class com.google.errorprone.predicates.TypePredicates
-
Match arrays.
- isArrayType() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node if its type is an array type.
- isAtLeastAsRestrictiveAs(Visibility) - Method in enum com.google.errorprone.util.Visibility
- isAutoValueAccessor(Tree) - Static method in class com.google.errorprone.dataflow.AccessPath
-
Check whether
tree
is an AutoValue accessor. - isBadType(Type, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractAsKeyOfSetOrMap
- isBadType(Type, VisitorState) - Method in class com.google.errorprone.bugpatterns.ArrayAsKeyOfSetOrMap
- isBoxedPrimitiveType() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node if its type is a boxed primitive type.
- isBugCheckerCode(VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns
true
if the code is in a BugChecker class. - isCanonical() - Method in class com.google.errorprone.bugpatterns.StaticImports.StaticImportInfo
-
Returns whether the import is canonical, i.e.
- isCastable(Type, Type, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns true if
erasure(s)
is castable toerasure(t)
. - isCheckedExceptionType(Type, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns true if
t
is a subtype of Throwable but not a subtype of RuntimeException or Error. - isCompatible() - Method in class com.google.errorprone.bugpatterns.TypeCompatibility.TypeCompatibilityReport
- isConcreteClassWithoutRunWith - Static variable in class com.google.errorprone.matchers.JUnitMatchers
-
Match a class which appears to be missing a @RunWith annotation.
- isConsideredFinal(Symbol) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns whether
symbol
is final or effectively final. - isCovered(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractReturnValueIgnored
- isCovered(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CheckReturnValue
- isCovered(E, C) - Method in interface com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicyAnalyzer
-
Returns whether this checker makes any determination about whether the given expression's return value should be used or not.
- isDeprecated() - Method in class com.google.errorprone.util.ErrorProneComment
-
We don't care about
@deprecated
javadoc tags (see the DepAnn check). - isDescendantOf(Supplier<Type>) - Static method in class com.google.errorprone.predicates.TypePredicates
-
Match sub-types of the given type.
- isDescendantOf(String) - Static method in class com.google.errorprone.predicates.TypePredicates
-
Match sub-types of the given type.
- isDescendantOfAny(Iterable<String>) - Static method in class com.google.errorprone.predicates.TypePredicates
-
Match types that are a sub-type of one of the given types.
- isDirectImplementationOf(String) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches any node that is directly an implementation, but not extension, of the given Class.
- isDisableAllChecks() - Method in class com.google.errorprone.ErrorProneOptions
- isDisableAllWarnings() - Method in class com.google.errorprone.ErrorProneOptions
- isDropErrorsToWarnings() - Method in class com.google.errorprone.ErrorProneOptions
- isEffectivelyPrivate(Symbol) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns whether this symbol or any of its owners are private.
- isEmpty() - Method in class com.google.errorprone.apply.DescriptionBasedDiff
- isEmpty() - Method in class com.google.errorprone.ErrorProneFlags
-
Whether this Flags object is empty, i.e.
- isEmpty() - Method in interface com.google.errorprone.fixes.Fix
- isEmpty() - Method in class com.google.errorprone.fixes.Replacements
- isEmpty() - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
- isEmpty() - Method in class com.google.errorprone.fixes.SuggestedFix
- isEnableAllChecksAsWarnings() - Method in class com.google.errorprone.ErrorProneOptions
- isEnum() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches if a
ClassTree
is an enum declaration. - isExactType(Supplier<Type>) - Static method in class com.google.errorprone.predicates.TypePredicates
-
Match types that are exactly equal.
- isExactType(String) - Static method in class com.google.errorprone.predicates.TypePredicates
-
Match types that are exactly equal.
- isExactTypeAny(Iterable<String>) - Static method in class com.google.errorprone.predicates.TypePredicates
-
Match types that are exactly equal to any of the given types.
- isExtensionOf(String) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches any node that is a direct extension of the given class.
- isField() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches if a
VariableTree
is a field declaration, as opposed to a local variable, enum constant, parameter to a method, etc. - isFinal(Symbol) - Static method in class com.google.errorprone.bugpatterns.BoxedPrimitiveEquality
- isFinalField(Element) - Static method in class com.google.errorprone.bugpatterns.inject.ElementPredicates
- isFirstConstructorOfMultiInjectedClass(Element) - Static method in class com.google.errorprone.bugpatterns.inject.ElementPredicates
- isGeneratedConstructor(MethodTree) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns true if the given tree is a generated constructor.
- isGuardedByValid(Tree, VisitorState, GuardedByFlags) - Static method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByUtils
- isHigher(OperatorPrecedence) - Method in enum com.google.errorprone.util.OperatorPrecedence
- isIgnoreSuppressionAnnotations() - Method in class com.google.errorprone.ErrorProneOptions
- isImmutableType(Type) - Static method in class com.google.errorprone.bugpatterns.ImmutableCollections
- isInitialized() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
- isInitialized() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
- isInitialized() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
- isInitialized() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
- isInitialized() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
- isInitialized() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
- isInitialized() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
- isInitialized() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
- isInitialized() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
- isInitialized() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
- isInstance(Class<?>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches if an AST node is an instance of the given class.
- isInstance(Object) - Static method in class com.google.errorprone.refaster.Refaster
-
This is a placeholder for the Java instanceof operator that can be used with Refaster type variables.
- isInstanceField() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node that represents a non-static field.
- IsInstanceIncompatibleType - Class in com.google.errorprone.bugpatterns
- IsInstanceIncompatibleType() - Constructor for class com.google.errorprone.bugpatterns.IsInstanceIncompatibleType
- IsInstanceOfClass - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - IsInstanceOfClass() - Constructor for class com.google.errorprone.bugpatterns.IsInstanceOfClass
- isInStaticInitializer(VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
-
Attempts to detect whether we're in a static-initializer-like context: that includes direct assignments to static fields, assignments to enum fields, being contained within an expression which is ultimately assigned to a static field.
- isJunit3TestCase - Static variable in class com.google.errorprone.matchers.JUnitMatchers
-
Match a method which appears to be a JUnit 3 test case.
- isJUnit3TestClass - Static variable in class com.google.errorprone.matchers.JUnitMatchers
-
Match a class which appears to be a JUnit 3 test class.
- isJUnit4TestClass - Static variable in class com.google.errorprone.matchers.JUnitMatchers
-
Matches classes which have attributes of only JUnit4 test classes.
- isJUnit4TestRunnerOfType(Iterable<String>) - Static method in class com.google.errorprone.matchers.JUnitMatchers
-
Matches an argument of type
Class<T>
, where T is a subtype of one of the test runners listed in the TEST_RUNNERS field. - isJUnitTestCode(VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns true if the leaf node in the
TreePath
fromstate
sits somewhere underneath a class or method that is marked as JUnit 3 or 4 test code. - isKnownNonNullReturning() - Method in interface com.google.errorprone.dataflow.nullnesspropagation.MethodInfo
- isKotlin(Symbol, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns
true
if this symbol was declared in Kotlin source. - isLastStatementInBlock() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches a statement AST node if the statement is the last statement in the block.
- isLocal(Symbol) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns true if the symbol is directly or indirectly local to a method or variable initializer; see
Symbol#isLocal
orSymbol#isDirectlyOrIndirectlyLocal
. - IsLoggableTagLength - Class in com.google.errorprone.bugpatterns.android
- IsLoggableTagLength() - Constructor for class com.google.errorprone.bugpatterns.android.IsLoggableTagLength
- isMoreVisibleThan(Visibility) - Method in enum com.google.errorprone.util.Visibility
- isNonNull() - Static method in class com.google.errorprone.matchers.Matchers
-
Deprecated.use
Matchers.isNonNullUsingDataflow()
instead. - IsNonNullMatcher - Class in com.google.errorprone.matchers
-
Matches expressions that can be statically determined to be non-null.
- IsNonNullMatcher() - Constructor for class com.google.errorprone.matchers.IsNonNullMatcher
- isNonNullUsingDataflow() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches if the expression is provably non-null.
- isNull() - Static method in class com.google.errorprone.matchers.Matchers
-
Deprecated.use
Matchers.isNullUsingDataflow()
instead. - isNullUsingDataflow() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches if the expression is provably null.
- isPresent() - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Violation
-
Returns true if a violation was found.
- isPrimitive() - Method in interface com.google.errorprone.dataflow.nullnesspropagation.MethodInfo
- isPrimitiveArrayType() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node if its type is a primitive array type.
- isPrimitiveOrBoxedPrimitiveType() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node if its type is a primitive type, or a boxed version of a primitive type.
- isPrimitiveOrVoidType() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node if its type is either a primitive type or a
void
type. - isPrimitiveType() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node if its type is a primitive type.
- isProto2MessageClass(VisitorState, Type) - Static method in class com.google.errorprone.bugpatterns.threadsafety.WellKnownMutability
-
Compile-time equivalent of
com.google.io.protocol.ProtocolSupport#isProto2MessageClass
. - isProto2MutableMessageClass(VisitorState, Type) - Static method in class com.google.errorprone.bugpatterns.threadsafety.WellKnownMutability
-
Compile-time equivalent of
com.google.io.protocol.ProtocolSupport#isProto2MutableMessageClass
. - isProtoEnum(VisitorState, Type) - Static method in class com.google.errorprone.bugpatterns.threadsafety.WellKnownMutability
- isPubliclyVisibleTarget() - Method in class com.google.errorprone.ErrorProneOptions
- isRecord(Symbol) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns whether the given
Symbol
is a record, a record's canonical constructor or a member that is part of a record's state vector. - isRemoveLine() - Method in class com.google.errorprone.fixes.AppliedFix
- isReturnValueUnused(ExpressionTree, VisitorState) - Static method in class com.google.errorprone.matchers.UnusedReturnValueMatcher
-
Returns
true
if and only if the giventree
is an invocation of or reference to a constructor or non-void
method for which the return value is considered unused. - isRuleKind(CaseTree) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns true if the given
CaseTree
is in the form:case <expression> -> <expression>
. - isSame(Tree) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node which is the same object reference as the given node.
- isSameType(Supplier<Type>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node if it has the same erased type as the given type.
- isSameType(Type, Type, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns true if
erasure(s) == erasure(t)
. - isSameType(Class<?>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node if it has the same erased type as the given class.
- isSameType(String) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node if it has the same erased type as the given type.
- IsSameType<T> - Class in com.google.errorprone.matchers
-
Matches an AST node if its erased type is the same as the given type, e.g.
- IsSameType(Supplier<Type>) - Constructor for class com.google.errorprone.matchers.IsSameType
- IsSameType(String) - Constructor for class com.google.errorprone.matchers.IsSameType
- isStatic() - Method in class com.google.errorprone.apply.ImportOrganizer.Import
-
True if the import is static, false otherwise.
- isStatic() - Method in interface com.google.errorprone.dataflow.nullnesspropagation.MethodInfo
- isStatic() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node that is static.
- isStatic(Symbol) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns true if the symbol is static.
- isSubtype(Type, Type, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns true if
erasure(s) <: erasure(t)
. - isSubtypeOf(Supplier<Type>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node if its type is a subtype of the given type.
- isSubtypeOf(Class<?>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node if its type is a subtype of the given type.
- isSubtypeOf(String) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node if its type is a subtype of the given type.
- IsSubtypeOf<T> - Class in com.google.errorprone.matchers
- IsSubtypeOf(Supplier<Type>) - Constructor for class com.google.errorprone.matchers.IsSubtypeOf
- IsSubtypeOf(String) - Constructor for class com.google.errorprone.matchers.IsSubtypeOf
- isSuggestionsAsWarnings() - Method in class com.google.errorprone.ErrorProneOptions
- isSuper(Tree) - Static method in class com.google.errorprone.util.ASTHelpers
- isSupportedOption(String) - Method in class com.google.errorprone.BaseErrorProneJavaCompiler
- isSupportedOption(String) - Static method in class com.google.errorprone.ErrorProneOptions
- isSuppressed(Suppressible, ErrorProneOptions, VisitorState) - Method in class com.google.errorprone.scanner.Scanner
-
Returns if this checker should be suppressed on the current tree path.
- isSuppressed(Tree) - Method in class com.google.errorprone.bugpatterns.BugChecker
-
Deprecated.use
BugChecker.isSuppressed(Tree, VisitorState)
instead - isSuppressed(Tree, VisitorState) - Method in class com.google.errorprone.bugpatterns.BugChecker
-
Returns true if the given tree is annotated with a
@SuppressWarnings
that disables this bug checker. - isSuppressed(Symbol) - Method in class com.google.errorprone.bugpatterns.BugChecker
-
Deprecated.use
BugChecker.isSuppressed(Symbol, VisitorState)
instead - isSuppressed(Symbol, VisitorState) - Method in class com.google.errorprone.bugpatterns.BugChecker
-
Returns true if the given symbol is annotated with a
@SuppressWarnings
or other annotation that disables this bug checker. - isTestCaseDescendant - Static variable in class com.google.errorprone.matchers.JUnitMatchers
-
Matches a class that inherits from TestCase.
- isTestNgTestCode(VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns true if the leaf node in the
TreePath
fromstate
sits somewhere underneath a class or method that is marked as TestNG test code. - isTestOnlyTarget() - Method in class com.google.errorprone.ErrorProneOptions
- isThreadSafeType(boolean, Set<String>, Type) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety
-
Returns an
ThreadSafety.Violation
explaining whether the type is threadsafe. - isThrowingFunctionalInterface(Type, VisitorState) - Static method in class com.google.errorprone.matchers.Matchers
- isTransient() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node that is transient.
- isType(String) - Static method in class com.google.errorprone.matchers.Matchers
- isValidName() - Method in enum com.google.errorprone.bugpatterns.TypeParameterNaming.TypeParameterNamingClassification
- isVariable() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node that represents a local variable or parameter.
- isVoidType() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node if its type is a
void
type. - isVoidType(Type, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
-
Return true if the given type is 'void' or 'Void'.
- ITERABLE - Enum constant in enum com.google.errorprone.bugpatterns.TypesWithUndefinedEquality
- IterableAndIterator - Class in com.google.errorprone.bugpatterns
- IterableAndIterator() - Constructor for class com.google.errorprone.bugpatterns.IterableAndIterator
- IterablePathParameter - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - IterablePathParameter() - Constructor for class com.google.errorprone.bugpatterns.IterablePathParameter
- iterator() - Method in class com.google.errorprone.refaster.Choice
J
- JAVA_LANG_BOOLEAN_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
- JAVA_LANG_INTEGER_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
- JAVA_LANG_LONG_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
- JAVA_LANG_VOID_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
- Java7ApiChecker - Class in com.google.errorprone.bugpatterns.apidiff
-
Checks for uses of classes, fields, or methods that are not compatible with JDK 7
- Java7ApiChecker() - Constructor for class com.google.errorprone.bugpatterns.apidiff.Java7ApiChecker
- Java8ApiChecker - Class in com.google.errorprone.bugpatterns.apidiff
-
Checks for uses of classes, fields, or methods that are not compatible with JDK 8
- JavacErrorDescriptionListener - Class in com.google.errorprone
-
Making our errors appear to the user and break their build.
- javaCharEscaper() - Static method in class com.google.errorprone.util.SourceCodeEscapers
-
Returns an
Escaper
instance that escapes special characters in a string so it can safely be included in either a Java character literal or string literal. - JavacInvocationInstance - Class in com.google.errorprone
-
A token uniquely identifying a single invocation of javac.
- JAVADOC_BLOCK - Enum constant in enum com.google.errorprone.util.ErrorProneComment.ErrorProneCommentStyle
- JAVADOC_LINE - Enum constant in enum com.google.errorprone.util.ErrorProneComment.ErrorProneCommentStyle
- JavaDurationGetSecondsGetNano - Class in com.google.errorprone.bugpatterns.time
-
This checker warns about calls to
duration.getNano()
without a corresponding "nearby" call toduration.getSeconds()
. - JavaDurationGetSecondsGetNano() - Constructor for class com.google.errorprone.bugpatterns.time.JavaDurationGetSecondsGetNano
- JavaDurationGetSecondsToToSeconds - Class in com.google.errorprone.bugpatterns.time
-
Error prone checking for
Duration.getSeconds()
withoutDuration.getNano()
. - JavaDurationGetSecondsToToSeconds() - Constructor for class com.google.errorprone.bugpatterns.time.JavaDurationGetSecondsToToSeconds
- JavaDurationWithNanos - Class in com.google.errorprone.bugpatterns.time
-
Check for calls to
duration.withNanos(int)
. - JavaDurationWithNanos() - Constructor for class com.google.errorprone.bugpatterns.time.JavaDurationWithNanos
- JavaDurationWithSeconds - Class in com.google.errorprone.bugpatterns.time
-
Check for calls to
duration.withSeconds(long)
. - JavaDurationWithSeconds() - Constructor for class com.google.errorprone.bugpatterns.time.JavaDurationWithSeconds
- JavaInstantGetSecondsGetNano - Class in com.google.errorprone.bugpatterns.time
-
This checker warns about calls to
instant.getNano()
without a corresponding "nearby" call toinstant.getEpochSecond()
. - JavaInstantGetSecondsGetNano() - Constructor for class com.google.errorprone.bugpatterns.time.JavaInstantGetSecondsGetNano
- JavaLangClash - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - JavaLangClash() - Constructor for class com.google.errorprone.bugpatterns.JavaLangClash
- JavaLocalDateTimeGetNano - Class in com.google.errorprone.bugpatterns.time
-
This checker warns about calls to
LocalDateTime.getNano()
without a corresponding "nearby" call toLocalDateTime.getSecond()
. - JavaLocalDateTimeGetNano() - Constructor for class com.google.errorprone.bugpatterns.time.JavaLocalDateTimeGetNano
- JavaLocalTimeGetNano - Class in com.google.errorprone.bugpatterns.time
-
This checker warns about calls to
LocalTime.getNano()
without a corresponding "nearby" call toLocalTime.getSecond()
. - JavaLocalTimeGetNano() - Constructor for class com.google.errorprone.bugpatterns.time.JavaLocalTimeGetNano
- JavaPeriodGetDays - Class in com.google.errorprone.bugpatterns.time
-
This checker warns about calls to
period.getDays()
without a corresponding "nearby" call toperiod.getYears(), period.getMonths(), or period.getTotalMonths()
. - JavaPeriodGetDays() - Constructor for class com.google.errorprone.bugpatterns.time.JavaPeriodGetDays
- JavaTimeDefaultTimeZone - Class in com.google.errorprone.bugpatterns.time
-
Check for calls to
java.time
APIs that silently use the default system time-zone. - JavaTimeDefaultTimeZone() - Constructor for class com.google.errorprone.bugpatterns.time.JavaTimeDefaultTimeZone
- JavaUtilDateChecker - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - JavaUtilDateChecker() - Constructor for class com.google.errorprone.bugpatterns.JavaUtilDateChecker
- JAVAX_INJECT_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
- JAVAX_QUALIFIER_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
- JAVAX_SCOPE_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
- JavaxInjectOnAbstractMethod - Class in com.google.errorprone.bugpatterns.inject
- JavaxInjectOnAbstractMethod() - Constructor for class com.google.errorprone.bugpatterns.inject.JavaxInjectOnAbstractMethod
- JavaxInjectOnFinalField - Class in com.google.errorprone.bugpatterns.inject
- JavaxInjectOnFinalField() - Constructor for class com.google.errorprone.bugpatterns.inject.JavaxInjectOnFinalField
- JdkObsolete - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - JdkObsolete() - Constructor for class com.google.errorprone.bugpatterns.JdkObsolete
- JodaConstructors - Class in com.google.errorprone.bugpatterns.time
-
Check for calls to bad JodaTime constructors.
- JodaConstructors() - Constructor for class com.google.errorprone.bugpatterns.time.JodaConstructors
- JodaDateTimeConstants - Class in com.google.errorprone.bugpatterns.time
-
Checks for usages of dangerous
DateTimeConstants
constants. - JodaDateTimeConstants() - Constructor for class com.google.errorprone.bugpatterns.time.JodaDateTimeConstants
- JodaDurationWithMillis - Class in com.google.errorprone.bugpatterns.time
-
Check for calls to
duration.withMillis(long)
. - JodaDurationWithMillis() - Constructor for class com.google.errorprone.bugpatterns.time.JodaDurationWithMillis
- JodaInstantWithMillis - Class in com.google.errorprone.bugpatterns.time
-
Check for calls to
instant.withMillis(long)
. - JodaInstantWithMillis() - Constructor for class com.google.errorprone.bugpatterns.time.JodaInstantWithMillis
- JodaNewPeriod - Class in com.google.errorprone.bugpatterns.time
-
Match possibly incorrect use of Period to obtain a number of (e.g.) days between two dates.
- JodaNewPeriod() - Constructor for class com.google.errorprone.bugpatterns.time.JodaNewPeriod
- JodaPlusMinusLong - Class in com.google.errorprone.bugpatterns.time
-
Check for calls to JodaTime's
type.plus(long)
andtype.minus(long)
where<type> = {Duration,Instant,DateTime,DateMidnight}
. - JodaPlusMinusLong() - Constructor for class com.google.errorprone.bugpatterns.time.JodaPlusMinusLong
- JodaTimeConverterManager - Class in com.google.errorprone.bugpatterns.time
-
Ban usage of Joda's
ConverterManager
. - JodaTimeConverterManager() - Constructor for class com.google.errorprone.bugpatterns.time.JodaTimeConverterManager
- JodaToSelf - Class in com.google.errorprone.bugpatterns.time
-
Check for calls to Joda-Time's
foo.toFoo()
andnew Foo(foo)
. - JodaToSelf() - Constructor for class com.google.errorprone.bugpatterns.time.JodaToSelf
- JodaWithDurationAddedLong - Class in com.google.errorprone.bugpatterns.time
-
Check for calls to JodaTime's
type.withDurationAdded(long, int)
where<type> = {Duration,Instant,DateTime}
. - JodaWithDurationAddedLong() - Constructor for class com.google.errorprone.bugpatterns.time.JodaWithDurationAddedLong
- JUNIT_AFTER_ANNOTATION - Static variable in class com.google.errorprone.matchers.JUnitMatchers
- JUNIT_AFTER_CLASS_ANNOTATION - Static variable in class com.google.errorprone.matchers.JUnitMatchers
- JUNIT_BEFORE_ANNOTATION - Static variable in class com.google.errorprone.matchers.JUnitMatchers
- JUNIT_BEFORE_CLASS_ANNOTATION - Static variable in class com.google.errorprone.matchers.JUnitMatchers
- JUnit3FloatingPointComparisonWithoutDelta - Class in com.google.errorprone.bugpatterns
-
Detects floating-point assertEquals() calls that will not work in JUnit 4.
- JUnit3FloatingPointComparisonWithoutDelta() - Constructor for class com.google.errorprone.bugpatterns.JUnit3FloatingPointComparisonWithoutDelta
- JUnit3TestNotRun - Class in com.google.errorprone.bugpatterns
-
A bugpattern; see the associated summary.
- JUnit3TestNotRun() - Constructor for class com.google.errorprone.bugpatterns.JUnit3TestNotRun
- JUNIT4_RUN_WITH_ANNOTATION - Static variable in class com.google.errorprone.matchers.JUnitMatchers
- JUNIT4_TEST_ANNOTATION - Static variable in class com.google.errorprone.matchers.JUnitMatchers
- JUNIT4_THEORY_ANNOTATION - Static variable in class com.google.errorprone.matchers.JUnitMatchers
- JUnit4ClassAnnotationNonStatic - Class in com.google.errorprone.bugpatterns
-
@BeforeClass
or@AfterClass
should be applied to static methods. - JUnit4ClassAnnotationNonStatic() - Constructor for class com.google.errorprone.bugpatterns.JUnit4ClassAnnotationNonStatic
- JUnit4ClassUsedInJUnit3 - Class in com.google.errorprone.bugpatterns
- JUnit4ClassUsedInJUnit3() - Constructor for class com.google.errorprone.bugpatterns.JUnit4ClassUsedInJUnit3
- JUnit4SetUpNotRun - Class in com.google.errorprone.bugpatterns
-
Checks for the existence of a JUnit3 style setUp() method in a JUnit4 test class or methods annotated with a non-JUnit4 @Before annotation.
- JUnit4SetUpNotRun() - Constructor for class com.google.errorprone.bugpatterns.JUnit4SetUpNotRun
- JUnit4TearDownNotRun - Class in com.google.errorprone.bugpatterns
-
Checks for the existence of a JUnit3 style tearDown() method in a JUnit4 test class or methods annotated with a non-JUnit4 @After annotation.
- JUnit4TearDownNotRun() - Constructor for class com.google.errorprone.bugpatterns.JUnit4TearDownNotRun
- JUnit4TestNotRun - Class in com.google.errorprone.bugpatterns
- JUnit4TestNotRun() - Constructor for class com.google.errorprone.bugpatterns.JUnit4TestNotRun
- JUnit4TestsNotRunWithinEnclosed - Class in com.google.errorprone.bugpatterns
-
Finds tests that won't run due to the enclosing runner.
- JUnit4TestsNotRunWithinEnclosed() - Constructor for class com.google.errorprone.bugpatterns.JUnit4TestsNotRunWithinEnclosed
- JUnitAmbiguousTestClass - Class in com.google.errorprone.bugpatterns
- JUnitAmbiguousTestClass() - Constructor for class com.google.errorprone.bugpatterns.JUnitAmbiguousTestClass
- JUnitAssertSameCheck - Class in com.google.errorprone.bugpatterns
-
Points out if an object is tested for reference equality to itself using JUnit library.
- JUnitAssertSameCheck() - Constructor for class com.google.errorprone.bugpatterns.JUnitAssertSameCheck
- JUnitIncompatibleType - Class in com.google.errorprone.bugpatterns.collectionincompatibletype
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - JUnitMatchers - Class in com.google.errorprone.matchers
-
Matchers for code patterns which appear to be JUnit-based tests.
- JUnitParameterMethodNotFound - Class in com.google.errorprone.bugpatterns
-
Checks if the methods specified in
junitparams.Parameters
annotation to provide parameters exists. - JUnitParameterMethodNotFound() - Constructor for class com.google.errorprone.bugpatterns.JUnitParameterMethodNotFound
K
- Keep - Annotation Type in com.google.errorprone.annotations
-
Indicates that the annotated element should not be removed, and that its visibility, modifiers, type, and name should not be modified.
- KEEP_ONLY_IDENTICAL_INSERTS - Enum constant in enum com.google.errorprone.fixes.Replacements.CoalescePolicy
-
Reject overlapping inserts, but treat duplicate inserts (same text at same position) specially.
- key() - Method in class com.google.errorprone.refaster.UFreeIdent
- key() - Method in class com.google.errorprone.refaster.UTypeVar
- Key(CharSequence) - Constructor for class com.google.errorprone.refaster.UTypeVar.Key
- Key(String) - Constructor for class com.google.errorprone.refaster.Bindings.Key
- kind() - Method in class com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions.ConstantExpression
- kind() - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.Erroneous
- kind() - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression
- kind() - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.ThisLiteral
- kind() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.Kind
- kind() - Method in class com.google.errorprone.util.ErrorProneToken
- Kind() - Constructor for class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.Kind
- KIND - Enum constant in enum com.google.errorprone.matchers.method.MethodInvocationMatcher.TokenType
- kindAnyOf(Set<Tree.Kind>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node of a given kind, for example, an Annotation or a switch block.
- kindIs(Tree.Kind) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node of a given kind, for example, an Annotation or a switch block.
- KNOWN_BUILDER_SETTER - Enum constant in enum com.google.errorprone.matchers.UnusedReturnValueMatcher.AllowReason
-
The method is a known Builder setter method (that always returns "this").
- knownTypes(ThreadSafetyKnownTypes) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Builder
-
Information about known types and whether they're known to be safe or unsafe.
L
- LabelledBreakTarget - Class in com.google.errorprone.bugpatterns
-
A BugPattern; see the summary.
- LabelledBreakTarget() - Constructor for class com.google.errorprone.bugpatterns.LabelledBreakTarget
- LambdaFunctionalInterface - Class in com.google.errorprone.bugpatterns
- LambdaFunctionalInterface() - Constructor for class com.google.errorprone.bugpatterns.LambdaFunctionalInterface
- LAST - Enum constant in enum com.google.errorprone.fixes.SuggestedFixes.AdditionPosition
- LAST - Enum constant in enum com.google.errorprone.matchers.ChildMultiMatcher.MatchType
-
Matches if the last child element matches the matcher, regardless of whether or not any of the other child elements would match the matcher.
- LazyInit - Annotation Type in com.google.errorprone.annotations.concurrent
-
Use this annotation on any static or field that will be initialized lazily, where races yield no semantic difference in the code (as, for example, is the case with
String.hashCode()
). - leastUpperBound(AccessPathStore<V>) - Method in class com.google.errorprone.dataflow.AccessPathStore
- leastUpperBound(Nullness) - Method in enum com.google.errorprone.dataflow.nullnesspropagation.Nullness
- length() - Method in class com.google.errorprone.fixes.Replacement
-
The length of the input text to be replaced.
- length() - Method in class com.google.errorprone.refaster.StringName
- LenientFormatStringValidation - Class in com.google.errorprone.bugpatterns
-
A BugPattern; see the summary.
- LenientFormatStringValidation() - Constructor for class com.google.errorprone.bugpatterns.LenientFormatStringValidation
- LETTER_WITH_MAYBE_NUMERAL - Enum constant in enum com.google.errorprone.bugpatterns.TypeParameterNaming.TypeParameterNamingClassification
-
Examples: B, Q, R2, T1, A9
- LevenshteinEditDistance - Class in com.google.errorprone.names
-
A utility class for finding the Levenshtein edit distance between strings.
- lhs() - Method in class com.google.errorprone.bugpatterns.TypeCompatibility.TypeCompatibilityReport
- LIKELY_ERROR - Static variable in class com.google.errorprone.BugPattern.StandardTags
-
This check, for reasons of backwards compatibility or difficulty in cleaning up, should be considered very likely to represent a real error in the vast majority (
>99.9%
) of cases, but couldn't otherwise be turned on as an ERROR. - LINE - Enum constant in enum com.google.errorprone.util.ErrorProneComment.ErrorProneCommentStyle
- link() - Element in annotation type com.google.errorprone.annotations.RestrictedApi
-
Optional link explaining why the API is restricted.
- link() - Element in annotation type com.google.errorprone.BugPattern
-
The link URL to use if linkType() is LinkType.CUSTOM.
- linkType() - Element in annotation type com.google.errorprone.BugPattern
-
The type of link to generate in the compiler error message.
- linkUrl() - Method in class com.google.errorprone.BugCheckerInfo
- linkUrl() - Method in class com.google.errorprone.bugpatterns.BugChecker
- LiteByteStringUtf8 - Class in com.google.errorprone.bugpatterns
- LiteByteStringUtf8() - Constructor for class com.google.errorprone.bugpatterns.LiteByteStringUtf8
- LiteEnumValueOf - Class in com.google.errorprone.bugpatterns
-
Points out if #valueOf() is called on a Protocol Buffer Enum.
- LiteEnumValueOf() - Constructor for class com.google.errorprone.bugpatterns.LiteEnumValueOf
- LiteProtoToString - Class in com.google.errorprone.bugpatterns
-
Flags calls to
toString
on lite protos. - LITERAL - Enum constant in enum com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions.ConstantExpression.ConstantExpressionKind
- loadPlugins(ScannerSupplier, Context) - Static method in class com.google.errorprone.ErrorPronePlugins
- loadVersionFromPom() - Static method in class com.google.errorprone.ErrorProneVersion
-
Loads the Error Prone version.
- LOCAL_VARIABLE - Enum constant in enum com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.Kind
- LocalDateTemporalAmount - Class in com.google.errorprone.bugpatterns.time
-
Bans calls to
LocalDate.plus(TemporalAmount)
andLocalDate.minus(TemporalAmount)
where theTemporalAmount
is a non-zeroDuration
. - LocalDateTemporalAmount() - Constructor for class com.google.errorprone.bugpatterns.time.LocalDateTemporalAmount
- LocalVarBinding - Class in com.google.errorprone.refaster
-
Binding for a local variable in a template.
- LocalVarBinding() - Constructor for class com.google.errorprone.refaster.LocalVarBinding
- LocalVariable() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.LocalVariable
- LockMethod - Annotation Type in com.google.errorprone.annotations.concurrent
-
Deprecated.the correctness of this annotation is not enforced; it will soon be removed.
- LockNotBeforeTry - Class in com.google.errorprone.bugpatterns
-
Suggests that calls to
Lock.lock
must be immediately followed by atry-finally
that callsLock.unlock
. - LockNotBeforeTry() - Constructor for class com.google.errorprone.bugpatterns.LockNotBeforeTry
- LockOnBoxedPrimitive - Class in com.google.errorprone.bugpatterns
-
Detects locks on boxed primitives.
- LockOnBoxedPrimitive() - Constructor for class com.google.errorprone.bugpatterns.LockOnBoxedPrimitive
- LockOnNonEnclosingClassLiteral - Class in com.google.errorprone.bugpatterns
-
Bug checker to detect the usage of lock on the class other than the enclosing class of the code block.
- LockOnNonEnclosingClassLiteral() - Constructor for class com.google.errorprone.bugpatterns.LockOnNonEnclosingClassLiteral
- logFatalError(Log) - Method in exception class com.google.errorprone.ErrorProneError
-
Deprecated.
- logFatalError(Log, Context) - Method in exception class com.google.errorprone.ErrorProneError
- LogicalAssignment - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - LogicalAssignment() - Constructor for class com.google.errorprone.bugpatterns.LogicalAssignment
- LONG_SPARSE_ARRAY - Enum constant in enum com.google.errorprone.bugpatterns.TypesWithUndefinedEquality
- LONG_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
- LongDoubleConversion - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - LongDoubleConversion() - Constructor for class com.google.errorprone.bugpatterns.LongDoubleConversion
- LongFloatConversion - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - LongFloatConversion() - Constructor for class com.google.errorprone.bugpatterns.LongFloatConversion
- longLit(long) - Static method in class com.google.errorprone.refaster.ULiteral
- LongLiteralLowerCaseSuffix - Class in com.google.errorprone.bugpatterns
-
Matcher for a
long
literal with a lower-case ell for a suffix (e.g. - LongLiteralLowerCaseSuffix() - Constructor for class com.google.errorprone.bugpatterns.LongLiteralLowerCaseSuffix
- looksLikeJUnit3SetUp - Static variable in class com.google.errorprone.matchers.JUnitMatchers
-
Match a method which appears to be a JUnit 3 setUp method
- looksLikeJUnit3TearDown - Static variable in class com.google.errorprone.matchers.JUnitMatchers
-
Match a method which appears to be a JUnit 3 tearDown method
- looksLikeJUnit4After - Static variable in class com.google.errorprone.matchers.JUnitMatchers
-
Matches a method which appears to be a JUnit4 @After method.
- looksLikeJUnit4Before - Static variable in class com.google.errorprone.matchers.JUnitMatchers
-
Matches a method which appears to be a JUnit4 @Before method.
- LoopConditionChecker - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - LoopConditionChecker() - Constructor for class com.google.errorprone.bugpatterns.LoopConditionChecker
- LoopOverCharArray - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - LoopOverCharArray() - Constructor for class com.google.errorprone.bugpatterns.LoopOverCharArray
- LossyPrimitiveCompare - Class in com.google.errorprone.bugpatterns
-
Checker to prevent usages of comparison methods where both the operands undergo lossy widening.
- LossyPrimitiveCompare() - Constructor for class com.google.errorprone.bugpatterns.LossyPrimitiveCompare
- lostType(VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractReturnValueIgnored
-
Check for occurrences of this type being lost, i.e.
- lostType(VisitorState) - Method in class com.google.errorprone.bugpatterns.FutureReturnValueIgnored
- lostTypeMessage(String, String) - Method in class com.google.errorprone.bugpatterns.AbstractReturnValueIgnored
- lostTypeMessage(String, String) - Method in class com.google.errorprone.bugpatterns.FutureReturnValueIgnored
M
- main(String[]) - Static method in class com.google.errorprone.DocGenTool
- MAIN_METHOD - Static variable in class com.google.errorprone.matchers.Matchers
- maker() - Method in class com.google.errorprone.refaster.Inliner
- MalformedInlineTag - Class in com.google.errorprone.bugpatterns.javadoc
-
Finds malformed inline tags where @{tag is used instead of {@tag.
- MalformedInlineTag() - Constructor for class com.google.errorprone.bugpatterns.javadoc.MalformedInlineTag
- mapAnnotationSimpleName(String, ResultUsePolicy) - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.Rules
- MapBuilder() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.ThreadSafetyKnownTypes.MapBuilder
- markerAnnotations(Iterable<String>) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Builder
-
Annotations that will cause a class to be tested with this
ThreadSafety
instance; for example, when testing a class for immutability, this should be @Immutable. - MaskedClassLoader - Class in com.google.errorprone
-
A classloader that allows plugins to access the Error Prone classes from the compiler classpath.
- MaskedClassLoader(ClassLoader) - Constructor for class com.google.errorprone.MaskedClassLoader
- match(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.StronglyType
- match(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.collectionincompatibletype.CollectionIncompatibleType
- match(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.collectionincompatibletype.CollectionUndefinedEquality
- match(JCTree, Context) - Method in class com.google.errorprone.refaster.BlockTemplate
-
If the tree is a
JCTree.JCBlock
, returns a list of disjoint matches corresponding to the exact list of template statements found consecutively; otherwise, returns an empty list. - match(JCTree, Context) - Method in class com.google.errorprone.refaster.ExpressionTemplate
-
Returns the matches of this template against the specified target AST.
- match(JCTree, Context) - Method in class com.google.errorprone.refaster.Template
- matchAllDiagnostics() - Method in class com.google.errorprone.CompilationTestHelper
-
By default, the compilation helper will only inspect diagnostics generated by the check being tested.
- matchAnnotatedType(AnnotatedTypeTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.AnnotatedTypeTreeMatcher
- matchAnnotatedType(AnnotatedTypeTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.MultipleNullnessAnnotations
- matchAnnotatedType(AnnotatedTypeTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.NullablePrimitive
- matchAnnotatedType(AnnotatedTypeTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.NullableWildcard
- matchAnnotation(AnnotationTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.AnnotationTreeMatcher
- matchAnnotation(AnnotationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.collectionincompatibletype.CompatibleWithMisuse
- matchAnnotation(AnnotationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.IncompatibleModifiersChecker
- matchAnnotation(AnnotationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.AssistedInjectAndInjectOnSameConstructor
- matchAnnotation(AnnotationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.AutoFactoryAtInject
- matchAnnotation(AnnotationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.guice.ProvidesMethodOutsideOfModule
- matchAnnotation(AnnotationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.JavaxInjectOnFinalField
- matchAnnotation(AnnotationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.MoreThanOneInjectableConstructor
- matchAnnotation(AnnotationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.MoreThanOneQualifier
- matchAnnotation(AnnotationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.ScopeAnnotationOnInterfaceOrAbstractClass
- matchAnnotation(AnnotationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.JUnit4ClassUsedInJUnit3
- matchAnnotation(AnnotationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MissingSuperCall
-
Prevents abstract methods from being annotated with
@CallSuper
et al. - matchAnnotation(AnnotationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.OutlineNone
-
Matches on
@Template
annotations whose value contains "outline:none" or equivalent outline style. - matchAnnotation(AnnotationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.RequiredModifiersChecker
- matchAnnotation(AnnotationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.RestrictedApiChecker
-
Validates a
@RestrictedApi
annotation and that the declared restriction makes sense. - matchAnnotation(AnnotationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.SuppressWarningsDeprecated
- matchArgument(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractReferenceEquality
- matchArgument(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.BoxedPrimitiveEquality
- matchArgument(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.OptionalEquality
- matchArgument(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ReferenceEquality
- matchArrayAccess(ArrayAccessTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ArrayAccessTreeMatcher
- matchArrayType(ArrayTypeTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ArrayTypeTreeMatcher
- matchAssert(AssertTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AssertFalse
- matchAssert(AssertTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.AssertTreeMatcher
- matchAssignment(AssignmentTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.AssignmentTreeMatcher
- matchAssignment(AssignmentTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.UnnecessarilyUsedValue
- matchAssignment(AssignmentTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CompileTimeConstantChecker
- matchAssignment(AssignmentTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.IdentityHashMapUsage
- matchAssignment(AssignmentTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.IntLongMath
- matchAssignment(AssignmentTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NoAllocationChecker
- matchAssignment(AssignmentTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NonAtomicVolatileUpdate
- matchAssignment(AssignmentTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.FieldMissingNullable
- matchAssignment(AssignmentTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.UnsafeWildcard
- matchAssignment(AssignmentTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.SelfAssignment
- matchAssignment(AssignmentTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.TimeUnitMismatch
- matchAssignment(AssignmentTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnnecessaryAssignment
- matchAssignment(AssignmentTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnnecessaryBoxedAssignment
- matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractReferenceEquality
- matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractToString
- matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.BadShiftAmount
- matchBinary(BinaryTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.BinaryTreeMatcher
- matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ComparingThisWithNull
- matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ComparisonOutOfRange
- matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ComplexBooleanConstant
- matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ConstantOverflow
- matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.EqualsNaN
- matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ErroneousBitwiseExpression
- matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.IdentityBinaryExpression
- matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NarrowCalculation
- matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NoAllocationChecker
- matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.FieldMissingNullable
- matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.ParameterMissingNullable
- matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.OperatorPrecedence
- matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ProtoStringFieldReferenceEquality
- matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.RandomModInteger
- matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ShortCircuitBoolean
- matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.SizeGreaterThanOrEqualsZero
- matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.TimeUnitMismatch
- matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.XorPower
- matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.YodaCondition
- matchBinaryTree(BinaryTree, List<Matcher<ExpressionTree>>, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
-
Given a BinaryTree to match against and a list of two matchers, applies the matchers to the operands in both orders.
- matchBlock(BlockTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.BlockTreeMatcher
- matchBlock(BlockTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MultiVariableDeclaration
- matchBreak(BreakTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.BreakTreeMatcher
- matchBreak(BreakTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.Finally
- matchCase(CaseTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.CaseTreeMatcher
- matchCase(CaseTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.TraditionalSwitchExpression
- matchCase(CaseTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnnecessaryBreakInSwitch
- matchCatch(CatchTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.CatchTreeMatcher
- matchCatch(CatchTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CatchAndPrintStackTrace
- matchCatch(CatchTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.EmptyCatch
- matchCatch(CatchTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.flogger.FloggerLogWithCause
- matchCatch(CatchTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnusedException
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AmbiguousMethodReference
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.android.FragmentInjection
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.android.FragmentNotInstantiable
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.android.ParcelableCreator
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AnnotationPosition
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AutoValueBoxedValues
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AutoValueFinalMethods
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AutoValueImmutableFields
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.BadAnnotationImplementation
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.BanClassLoader
- matchClass(ClassTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ClassTreeMatcher
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.BugPatternNaming
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CheckReturnValue
-
Validate that at most one of
CheckReturnValue
andCanIgnoreReturnValue
are applied to a class (or interface or enum). - matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.NoCanIgnoreReturnValueOnClasses
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ClassCanBeStatic
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ClassInitializationDeadlock
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ClassNamedLikeTypeParameter
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ComparableAndComparator
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ComparableType
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ConstantPatternCompile
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DepAnn
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.EqualsHashCode
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ExtendingJUnitAssert
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ExtendsAutoValue
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.FunctionalInterfaceClash
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.HidingField
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.IdentifierName
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ImmutableMemberCollection
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ImmutableSetForContains
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.InconsistentCapitalization
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.InconsistentHashCode
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.AssistedInjectAndInjectOnConstructors
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.dagger.PrivateConstructorForNoninstantiableModule
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.dagger.ScopeOnModule
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.guice.AssistedInjectScoping
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.InjectOnMemberAndConstructor
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.InvalidTargetingOnScopingAnnotation
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.MissingRuntimeRetention
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.MoreThanOneScopeAnnotationOnClass
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.OverlappingQualifierAndScopeAnnotation
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.QualifierWithTypeUse
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.InputStreamSlowMultibyteRead
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.InterfaceWithOnlyStatics
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.IterableAndIterator
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.EmptyBlockTag
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.EscapedEntity
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.InheritDoc
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.InvalidBlockTag
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.InvalidInlineTag
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.InvalidLink
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.InvalidParam
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.MalformedInlineTag
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.MissingSummary
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.UnescapedEntity
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.UnrecognisedJavadocTag
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.UrlInSee
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.JavaLangClash
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.JdkObsolete
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.JUnit4TestNotRun
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.JUnitAmbiguousTestClass
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MissingRefasterAnnotation
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MultiVariableDeclaration
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MustBeClosedChecker
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NamedLikeContextualKeyword
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.UnsafeWildcard
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.overloading.InconsistentOverloads
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.OverrideThrowableToString
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ParametersButNotParameterized
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.PrivateConstructorForUtilityClass
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ProtectedMembersInFinalClass
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.TestParametersNotInitialized
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.TheoryButNoTheories
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.ImmutableAnnotationChecker
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.ImmutableChecker
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.ImmutableEnumChecker
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafeChecker
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.TypeNameShadowing
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.TypeParameterShadowing
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UngroupedOverloads
- matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.VarTypeName
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AlreadyChecked
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AutoValueSubclassLeaked
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.CompilationUnitTreeMatcher
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ChainingConstructorIgnoresParameter
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ClassName
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DeduplicateConstants
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DeeplyNested
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DefaultPackage
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DifferentNameButSame
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DirectInvocationOnMock
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DoNotCallChecker
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.EmptyTopLevelDeclaration
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.FieldCanBeFinal
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.FieldCanBeLocal
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.formatstring.InlineFormatString
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ImpossibleNullComparison
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.InlineTrivialConstant
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.AlmostJavadoc
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.NotJavadoc
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.JUnit3TestNotRun
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.JUnit4TestsNotRunWithinEnclosed
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MemoizeConstantVisitorStateLookups
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MethodCanBeStatic
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MixedMutabilityReturnType
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MockitoDoSetup
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MockNotUsedInProduction
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MultipleTopLevelClasses
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.ReturnMissingNullable
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.OptionalNotPresent
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.PackageInfo
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.PackageLocation
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.PreferredInterfaceType
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.RemoveUnusedImports
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.SameNameButDifferent
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.StronglyTypeByteString
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.SuppressWarningsWithoutExplanation
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.ImmutableRefactoring
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.StronglyTypeTime
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnicodeDirectionalityCharacters
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnicodeEscape
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnicodeInCode
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnnecessarilyFullyQualified
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnnecessaryBoxedVariable
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnnecessaryTestMethodPrefix
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnusedLabel
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnusedMethod
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnusedNestedClass
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnusedTypeParameter
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnusedVariable
- matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.WildcardImport
- matchCompoundAssignment(CompoundAssignmentTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractToString
- matchCompoundAssignment(CompoundAssignmentTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.CompoundAssignmentTreeMatcher
- matchCompoundAssignment(CompoundAssignmentTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NarrowingCompoundAssignment
- matchCompoundAssignment(CompoundAssignmentTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NoAllocationChecker
- matchCompoundAssignment(CompoundAssignmentTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NonAtomicVolatileUpdate
- matchConditionalExpression(ConditionalExpressionTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ConditionalExpressionTreeMatcher
- matchConditionalExpression(ConditionalExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ConditionalExpressionNumericPromotion
- matchConditionalExpression(ConditionalExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DuplicateBranches
- matchConditionalExpression(ConditionalExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.UnsafeWildcard
- matchConditionalExpression(ConditionalExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NullTernary
- matchConditionalExpression(ConditionalExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.OperatorPrecedence
- matchContinue(ContinueTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ContinueTreeMatcher
- matchContinue(ContinueTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.Finally
- matchDoWhileLoop(DoWhileLoopTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.DoWhileLoopTreeMatcher
- matchDoWhileLoop(DoWhileLoopTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.LogicalAssignment
- matchDoWhileLoop(DoWhileLoopTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.LoopConditionChecker
- matchDoWhileLoop(DoWhileLoopTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MissingBraces
- matchEmptyStatement(EmptyStatementTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.EmptyStatementTreeMatcher
- matchEmptyStatement(EmptyStatementTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.EmptyIfStatement
-
Match empty statement if: - Parent statement is an if - The then part of the parent if is an empty statement, and - The else part of the parent if does not exist
- matchEnhancedForLoop(EnhancedForLoopTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.EnhancedForLoopTreeMatcher
- matchEnhancedForLoop(EnhancedForLoopTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.LoopOverCharArray
- matchEnhancedForLoop(EnhancedForLoopTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MissingBraces
- matchEnhancedForLoop(EnhancedForLoopTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NoAllocationChecker
- matcher - Variable in class com.google.errorprone.matchers.Enclosing.Block
- matcher - Variable in class com.google.errorprone.matchers.Enclosing.Class
- matcher - Variable in class com.google.errorprone.matchers.Enclosing.Method
- matcher() - Method in class com.google.errorprone.bugpatterns.collectionincompatibletype.AbstractCollectionIncompatibleTypeMatcher.MatchResult
- Matcher<T> - Interface in com.google.errorprone.matchers
-
Define a predicate on a
Tree
, which also accesses the state of AST traversal. - MATCHER - Static variable in class com.google.errorprone.bugpatterns.DeadException
- MATCHER - Static variable in class com.google.errorprone.bugpatterns.ProtoBuilderReturnValueIgnored
- MATCHER - Static variable in class com.google.errorprone.bugpatterns.StreamResourceLeak
- Matchers - Class in com.google.errorprone.matchers
-
Static factory methods which make the DSL read more fluently.
- matches() - Method in class com.google.errorprone.matchers.MultiMatcher.MultiMatchResult
-
True if the MultiMatcher matched the nodes expected.
- matches(AnnotationTree, VisitorState) - Method in class com.google.errorprone.matchers.AnnotationDoesNotHaveArgument
- matches(AnnotationTree, VisitorState) - Method in class com.google.errorprone.matchers.AnnotationHasArgumentWithValue
- matches(AnnotationTree, VisitorState) - Method in class com.google.errorprone.matchers.AnnotationType
- matches(CompoundAssignmentTree, VisitorState) - Method in class com.google.errorprone.matchers.CompoundAssignment
- matches(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.collectionincompatibletype.AbstractCollectionIncompatibleTypeMatcher
- matches(ExpressionTree, VisitorState) - Method in class com.google.errorprone.matchers.CompileTimeConstantExpressionMatcher
- matches(ExpressionTree, VisitorState) - Method in class com.google.errorprone.matchers.IsNonNullMatcher
- matches(ExpressionTree, VisitorState) - Method in class com.google.errorprone.matchers.MethodInvocation
- matches(ExpressionTree, VisitorState) - Method in class com.google.errorprone.matchers.NullnessMatcher
- matches(ExpressionTree, VisitorState) - Method in class com.google.errorprone.matchers.StringLiteral
- matches(ExpressionTree, VisitorState) - Method in class com.google.errorprone.matchers.UnusedReturnValueMatcher
- matches(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.matchers.MethodInvocationArgument
- matches(MethodTree, VisitorState) - Method in class com.google.errorprone.matchers.MethodVisibility
- matches(StatementTree, VisitorState) - Method in class com.google.errorprone.matchers.Asserts
- matches(StatementTree, VisitorState) - Method in class com.google.errorprone.matchers.Returns
- matches(StatementTree, VisitorState) - Method in class com.google.errorprone.matchers.Throws
- matches(Tree, VisitorState) - Method in class com.google.errorprone.matchers.Contains
- matches(Tree, VisitorState) - Method in class com.google.errorprone.matchers.HasIdentifier
- matches(T, VisitorState) - Method in class com.google.errorprone.matchers.AbstractTypeMatcher
- matches(T, VisitorState) - Method in class com.google.errorprone.matchers.ChildMultiMatcher
- matches(T, VisitorState) - Method in class com.google.errorprone.matchers.Enclosing.BlockOrCase
- matches(T, VisitorState) - Method in class com.google.errorprone.matchers.IsSameType
- matches(T, VisitorState) - Method in class com.google.errorprone.matchers.IsSubtypeOf
- matches(T, VisitorState) - Method in interface com.google.errorprone.matchers.Matcher
- matches(T, VisitorState) - Method in class com.google.errorprone.matchers.Enclosing.Block
- matches(T, VisitorState) - Method in class com.google.errorprone.matchers.Enclosing.Class
- matches(T, VisitorState) - Method in class com.google.errorprone.matchers.Enclosing.Method
- Matches - Annotation Type in com.google.errorprone.refaster.annotation
-
Specify an error-prone
Matcher
to further restrict what expressions are matched by the annotated parameter. - matchesType(Type, VisitorState) - Method in enum com.google.errorprone.bugpatterns.TypesWithUndefinedEquality
- matchExpressionReturn(Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches the
Tree
if it returns an expression matchingexpressionTreeMatcher
. - matchExpressionStatement(ExpressionStatementTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ExpressionStatementTreeMatcher
- matchExpressionStatement(ExpressionStatementTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ModifiedButNotUsed
- matchForLoop(ForLoopTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ForLoopTreeMatcher
- matchForLoop(ForLoopTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.IncrementInForLoopAndHeader
- matchForLoop(ForLoopTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.LogicalAssignment
- matchForLoop(ForLoopTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.LoopConditionChecker
- matchForLoop(ForLoopTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MissingBraces
- matchHelper(T, VisitorState, Matcher<T>) - Method in class com.google.errorprone.bugpatterns.AbstractBanUnsafeAPIChecker
- matchIdentifier(IdentifierTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffChecker
- matchIdentifier(IdentifierTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.IdentifierTreeMatcher
- matchIdentifier(IdentifierTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.flogger.FloggerRequiredModifiers
- matchIdentifier(IdentifierTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.SunApi
- matchIdentifier(IdentifierTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.JodaDateTimeConstants
- matchIdentifier(IdentifierTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.VoidUsed
- matchIf(IfTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractUseSwitch
- matchIf(IfTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.IfTreeMatcher
- matchIf(IfTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DuplicateBranches
- matchIf(IfTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.flogger.FloggerRedundantIsEnabled
- matchIf(IfTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ImplementAssertionWithChaining
- matchIf(IfTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.LogicalAssignment
- matchIf(IfTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MissingBraces
- matchIf(IfTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NestedInstanceOfConditions
- matchIf(IfTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.PatternMatchingInstanceof
- matchIf(IfTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.DoubleCheckedLocking
- matchImport(ImportTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.BadImport
- matchImport(ImportTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ImportTreeMatcher
- matchImport(ImportTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.UsingJsr305CheckReturnValue
- matchImport(ImportTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NonCanonicalStaticImport
- matchImport(ImportTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NonCanonicalStaticMemberImport
- matchImport(ImportTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnnecessaryStaticImport
- matchingMethods(Name, Predicate<Symbol.MethodSymbol>, Type, Types) - Static method in class com.google.errorprone.util.ASTHelpers
-
Finds all methods in any superclass of
startClass
with a certainname
that match the givenpredicate
. - matchingNodes() - Method in class com.google.errorprone.matchers.MultiMatcher.MultiMatchResult
-
The list of nodes which matched the MultiMatcher's expectations (could be empty if the match type was ALL and there were no child nodes).
- matchInstanceOf(InstanceOfTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.BadInstanceof
- matchInstanceOf(InstanceOfTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.InstanceOfTreeMatcher
- matchIntersectionType(IntersectionTypeTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.IntersectionTypeTreeMatcher
- matchLabeledStatement(LabeledStatementTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.LabeledStatementTreeMatcher
- matchLabeledStatement(LabeledStatementTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.LabelledBreakTarget
- matchLambdaExpression(LambdaExpressionTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.LambdaExpressionTreeMatcher
- matchLambdaExpression(LambdaExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CompileTimeConstantChecker
- matchLambdaExpression(LambdaExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.UnsafeWildcard
- matchLambdaExpression(LambdaExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.StreamToIterable
- matchLambdaExpression(LambdaExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByChecker
- matchLambdaExpression(LambdaExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.ImmutableChecker
- matchLiteral(LiteralTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.android.HardCodedSdCardPath
- matchLiteral(LiteralTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.LiteralTreeMatcher
- matchLiteral(LiteralTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DangerousLiteralNullChecker
- matchLiteral(LiteralTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.FloatingPointLiteralPrecision
- matchLiteral(LiteralTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.LongLiteralLowerCaseSuffix
- matchLiteral(LiteralTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MisleadingEscapedSpace
- matchLiteral(LiteralTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.OrphanedFormatString
- matchLiteral(LiteralTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.SwigMemoryLeak
- matchMemberReference(MemberReferenceTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractReturnValueIgnored
- matchMemberReference(MemberReferenceTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.MemberReferenceTreeMatcher
- matchMemberReference(MemberReferenceTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.collectionincompatibletype.CollectionIncompatibleType
- matchMemberReference(MemberReferenceTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.collectionincompatibletype.CollectionUndefinedEquality
- matchMemberReference(MemberReferenceTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CompileTimeConstantChecker
- matchMemberReference(MemberReferenceTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.EqualsIncompatibleType
- matchMemberReference(MemberReferenceTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inlineme.Inliner
- matchMemberReference(MemberReferenceTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.IsInstanceIncompatibleType
- matchMemberReference(MemberReferenceTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.JdkObsolete
- matchMemberReference(MemberReferenceTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ModifySourceCollectionInStream
- matchMemberReference(MemberReferenceTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.RestrictedApiChecker
- matchMemberReference(MemberReferenceTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.RxReturnValueIgnored
- matchMemberReference(MemberReferenceTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.StreamToIterable
- matchMemberReference(MemberReferenceTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByChecker
- matchMemberReference(MemberReferenceTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.ImmutableChecker
- matchMemberReference(MemberReferenceTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafeChecker
- matchMemberReference(MemberReferenceTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnnecessaryMethodReference
- matchMemberSelect(MemberSelectTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.android.MislabeledAndroidString
- matchMemberSelect(MemberSelectTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffChecker
- matchMemberSelect(MemberSelectTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.MemberSelectTreeMatcher
- matchMemberSelect(MemberSelectTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.flogger.FloggerRequiredModifiers
- matchMemberSelect(MemberSelectTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NonCanonicalType
- matchMemberSelect(MemberSelectTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NullableOnContainingClass
- matchMemberSelect(MemberSelectTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.DereferenceWithNullBranch
- matchMemberSelect(MemberSelectTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.StaticQualifiedUsingExpression
- matchMemberSelect(MemberSelectTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.SunApi
- matchMemberSelect(MemberSelectTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.SystemOut
- matchMemberSelect(MemberSelectTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.JodaDateTimeConstants
- matchMemberSelect(MemberSelectTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.TypeParameterQualifier
- matchMemberSelect(MemberSelectTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.VoidUsed
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.JUnit4SetUpNotRun
-
Matches if all of the following conditions are true: 1) The method matches
AbstractJUnit4InitMethodNotRun.methodMatcher()
, (looks like setUp() or tearDown(), and none of the overrides in the hierarchy of the method have the appropriate @Before or @After annotations) 2) The method is not annotated with @Test 3) The enclosing class has an @RunWith annotation and does not extend TestCase. - matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.JUnit4TearDownNotRun
-
Matches if all of the following conditions are true: 1) The method matches
AbstractJUnit4InitMethodNotRun.methodMatcher()
, (looks like setUp() or tearDown(), and none of the overrides in the hierarchy of the method have the appropriate @Before or @After annotations) 2) The method is not annotated with @Test 3) The enclosing class has an @RunWith annotation and does not extend TestCase. - matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.android.StaticOrDefaultInterfaceMethod
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AnnotationPosition
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AutoValueBuilderDefaultsInConstructor
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AvoidObjectArrays
- matchMethod(MethodTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.MethodTreeMatcher
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CacheLoaderNull
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ChainingConstructorIgnoresParameter
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CheckedExceptionNotThrown
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CheckNotNullMultipleTimes
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.BuilderReturnThis
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.CanIgnoreReturnValueSuggester
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CheckReturnValue
-
Validate
@CheckReturnValue
andCanIgnoreReturnValue
usage on methods. - matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ComparisonContractViolated
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CompileTimeConstantChecker
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DepAnn
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DoNotCallChecker
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DoNotCallSuggester
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DoNotClaimAnnotations
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.EqualsReference
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.EqualsUnsafeCast
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.EqualsWrongThing
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ExpectedExceptionChecker
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.Finalize
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.flogger.FloggerSplitLogStatement
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.formatstring.FormatStringAnnotationChecker
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ForOverrideChecker
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.FunctionalInterfaceMethodChanged
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.IdentifierName
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.IncorrectMainMethod
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.InfiniteRecursion
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.CloseableProvides
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.dagger.AndroidInjectionBeforeSuper
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.dagger.EmptySetMultibindingContributions
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.dagger.UseBinds
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.guice.AssistedParameters
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.guice.BindingToUnqualifiedCommonType
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.guice.OverridesGuiceInjectableMethod
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.guice.OverridesJavaxInjectableMethod
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.InjectedConstructorAnnotations
-
Matches injected constructors annotated with @Inject(optional=true) or binding annotations.
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.InjectOnConstructorOfAbstractClass
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.JavaxInjectOnAbstractMethod
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.MisplacedScopeAnnotations
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.QualifierOrScopeOnInjectMethod
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.InjectOnBugCheckers
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inlineme.Suggester
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inlineme.Validator
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.InterruptedExceptionSwallowed
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.EmptyBlockTag
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.EscapedEntity
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.InheritDoc
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.InvalidBlockTag
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.InvalidInlineTag
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.InvalidLink
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.InvalidParam
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.InvalidThrows
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.InvalidThrowsLink
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.MalformedInlineTag
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.MissingSummary
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.ReturnFromVoid
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.UnescapedEntity
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.UnrecognisedJavadocTag
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.UrlInSee
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.JUnit4ClassAnnotationNonStatic
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.JUnitParameterMethodNotFound
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.LambdaFunctionalInterface
-
Identifies methods with parameters that have a generic argument with Int, Long, or Double.
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MissingImplementsComparable
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MissingOverride
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MissingSuperCall
-
Matches a method that overrides a method that has been annotated with
@CallSuper
et al., but does not call the super method. - matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MissingTestCall
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MixedArrayDimensions
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MustBeClosedChecker
-
Check that the
MustBeClosed
annotation is only used for constructors of AutoCloseables and methods that return an AutoCloseable. - matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NamedLikeContextualKeyword
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NoAllocationChecker
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NonApiType
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NonFinalCompileTimeConstant
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NonOverridingEquals
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NullableConstructor
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NullableOnContainingClass
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NullableOptional
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NullableVoid
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.EqualsBrokenForNull
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.EqualsMissingNullable
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.MultipleNullnessAnnotations
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.NullablePrimitive
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.NullablePrimitiveArray
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.VoidMissingNullable
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.Overrides
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.OverridingMethodInconsistentArgumentNamesChecker
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.PublicApiNamedStreamShouldReturnStream
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.RedundantOverride
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.RedundantThrows
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ReturnAtTheEndOfVoidFunction
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.SelfAlwaysReturnsThis
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.StaticAssignmentInConstructor
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.StaticAssignmentOfThrowable
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.StreamResourceLeak
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.TestExceptionChecker
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByChecker
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.ImmutableChecker
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ThrowsUncheckedException
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.TooManyParameters
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ToStringReturnsNull
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.TypeNameShadowing
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.TypeParameterShadowing
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.TypeParameterUnusedInFormals
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnnecessarilyVisible
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnnecessaryLambda
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnsynchronizedOverridesSynchronized
- matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UseCorrectAssertInTests
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractAsKeyOfSetOrMap
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractMockChecker
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractPatternSyntaxChecker
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractReturnValueIgnored
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractToString
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AddressSelection
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AlwaysThrows
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.android.BinderIdentityRestoredDangerously
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.android.IsLoggableTagLength
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.android.WakelockReleasedDangerously
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AnnotateFormatMethod
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.argumentselectiondefects.ArgumentSelectionDefectChecker
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.argumentselectiondefects.AssertEqualsArgumentOrderChecker
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ArrayEquals
-
Suggests replacing with Arrays.equals(a, b).
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ArrayFillIncompatibleType
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ArrayHashCode
-
Wraps identity hashcode computations in calls to
Arrays.hashCode(long[])
if the array is single dimensional orArrays.deepHashCode(java.lang.Object[])
if the array is multidimensional. - matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ArraysAsListPrimitiveArray
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AssertionFailureIgnored
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AssertThrowsMultipleStatements
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ASTHelpersSuggestions
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.BanClassLoader
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.BanJNDI
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.BanSerializableRead
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.BigDecimalEquals
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.BooleanParameter
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.MethodInvocationTreeMatcher
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ByteBufferBackingArray
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CannotMockFinalClass
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CannotMockMethod
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CanonicalDuration
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ChainedAssertionLosesContext
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ChainingConstructorIgnoresParameter
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CharacterGetNumericValue
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ClassNewInstance
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.collectionincompatibletype.CollectionIncompatibleType
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.collectionincompatibletype.CollectionUndefinedEquality
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.collectionincompatibletype.IncompatibleArgumentType
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.collectionincompatibletype.JUnitIncompatibleType
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.collectionincompatibletype.TruthIncompatibleType
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CollectionToArraySafeParameter
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CollectorShouldNotUseState
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CompareToZero
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CompileTimeConstantChecker
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ComputeIfAbsentAmbiguousReference
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DefaultCharset
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DefaultLocale
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DistinctVarargsChecker
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DuplicateMapKeys
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.EnumOrdinal
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.EqualsGetClass
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.EqualsIncompatibleType
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.EqualsNull
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.EqualsUsingHashCode
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.FloatingPointAssertionWithinEpsilon
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.flogger.FloggerArgumentToString
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.flogger.FloggerFormatString
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.flogger.FloggerLogString
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.flogger.FloggerLogVarargs
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.flogger.FloggerMessageFormat
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.flogger.FloggerRequiredModifiers
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.flogger.FloggerStringConcatenation
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.flogger.FloggerWithCause
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.flogger.FloggerWithoutCause
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.formatstring.FormatString
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.formatstring.FormatStringAnnotationChecker
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ForOverrideChecker
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.FuturesGetCheckedIllegalExceptionType
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.FutureTransformAsync
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.FuzzyEqualsShouldNotBeUsedInEqualsMethod
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.GetClassOnAnnotation
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.GetClassOnClass
-
Suggests removing getClass() or changing to Class.class.
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.GetClassOnEnum
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.GuiceNestedCombine
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.HashtableContains
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ICCProfileGetInstance
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.IdentityHashMapBoxing
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.IdentityHashMapUsage
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.IndexOfChar
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.InexactVarargsConditional
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.dagger.RefersToDaggerCodegen
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.guice.BindingToUnqualifiedCommonType
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inlineme.Inliner
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.InsecureCipherMode
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.Interruption
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.InvalidTimeZoneID
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.InvalidZoneId
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.IsInstanceIncompatibleType
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.IsInstanceOfClass
-
Suggests removing getClass() or changing to Class.class.
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.JavaUtilDateChecker
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.JUnit3FloatingPointComparisonWithoutDelta
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.JUnit4ClassUsedInJUnit3
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.JUnitAssertSameCheck
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.LenientFormatStringValidation
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.LiteByteStringUtf8
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.LiteEnumValueOf
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.LockNotBeforeTry
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.LockOnBoxedPrimitive
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.LongDoubleConversion
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.LongFloatConversion
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.LossyPrimitiveCompare
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MathAbsoluteNegative
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MathRoundIntLong
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MisformattedTestData
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MisusedDateFormat
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MixedDescriptors
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MockitoUsage
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ModifyCollectionInEnhancedForLoop
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ModifyingCollectionWithItself
-
Matches calls to addAll, containsAll, removeAll, and retainAll on itself
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ModifySourceCollectionInStream
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MultimapKeys
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MultipleParallelOrSequentialCalls
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MultipleUnaryOperatorsInMethodCall
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NamedLikeContextualKeyword
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NCopiesOfChar
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NewFileSystem
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NoAllocationChecker
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NonRuntimeAnnotation
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.NullArgumentForNonNullParameter
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.ParameterMissingNullable
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.UnnecessaryCheckNotNull
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.UnsafeWildcard
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NullOptional
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ObjectEqualsForPrimitives
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ObjectsHashCodePrimitive
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.OptionalMapToOptional
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.OptionalMapUnusedValue
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.OptionalOfRedundantMethod
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.OutlineNone
-
Matches on
setProperty("outline", "none")
and equivalent method calls. - matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ParameterComment
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ParameterName
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.PreconditionsCheckNotNullRepeated
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.PreconditionsInvalidPlaceholder
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.PrimitiveArrayPassedToVarargsMethod
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.PrimitiveAtomicReference
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.PrivateSecurityContractProtoAccess
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ProtoBuilderReturnValueIgnored
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ProtocolBufferOrdinal
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ProtoTruthMixedDescriptors
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.RandomCast
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ReachabilityFenceUsage
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.RedundantSetterCall
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.RestrictedApiChecker
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.RobolectricShadowDirectlyOn
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.RxReturnValueIgnored
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.SelfAssertion
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.SelfComparison
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.SelfEquals
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.SetUnrecognized
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ShouldHaveEvenArgs
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.StringCaseLocaleUsage
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.StringCharset
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.StringFormatWithLiteral
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.StringSplitter
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.SubstringOfZero
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.SuperCallToObjectMethod
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.SystemConsoleNull
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.SystemExitOutsideMain
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.SystemOut
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ThreadJoinLoop
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.ImmutableChecker
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadPriorityCheck
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafeChecker
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ThreeLetterTimeZoneID
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ThrowIfUncheckedKnownChecked
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ThrowIfUncheckedKnownUnchecked
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.DateChecker
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.DurationFrom
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.DurationGetTemporalUnit
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.DurationTemporalUnit
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.DurationToLongTimeUnit
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.FromTemporalAccessor
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.InstantTemporalUnit
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.InvalidJavaTimeConstant
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.JavaDurationGetSecondsGetNano
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.JavaDurationGetSecondsToToSeconds
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.JavaDurationWithNanos
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.JavaDurationWithSeconds
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.JavaInstantGetSecondsGetNano
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.JavaLocalDateTimeGetNano
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.JavaLocalTimeGetNano
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.JavaPeriodGetDays
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.JavaTimeDefaultTimeZone
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.JodaDurationWithMillis
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.JodaInstantWithMillis
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.JodaNewPeriod
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.JodaPlusMinusLong
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.JodaTimeConverterManager
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.JodaToSelf
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.JodaWithDurationAddedLong
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.LocalDateTemporalAmount
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.PeriodFrom
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.PeriodGetTemporalUnit
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.PeriodTimeMath
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.PreferJavaTimeOverload
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.ProtoDurationGetSecondsGetNano
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.ProtoTimestampGetSecondsGetNano
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.TemporalAccessorGetChronoField
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.TimeUnitConversionChecker
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.TimeUnitMismatch
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.ZoneIdOfZ
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.TruthAssertExpected
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.TruthConstantAsserts
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.TruthContainsExactlyElementsInUsage
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.TruthGetOrDefault
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.TypeEqualsChecker
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UndefinedEquals
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnnecessaryLongToIntConversion
-
Matches if a long or Long is converted to an int for a long parameter in a method invocation.
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnnecessaryMethodInvocationMatcher
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnnecessaryOptionalGet
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnnecessarySetDefault
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnnecessaryTypeArgument
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnsafeFinalization
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnsafeLocaleUsage
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnusedCollectionModifiedInPlace
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.URLEqualsHashCode
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.WaitNotInLoop
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.WithSignatureDiscouraged
- matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.YodaCondition
- matchModifiers(ModifiersTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ModifiersTreeMatcher
- matchNewArray(NewArrayTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.NewArrayTreeMatcher
- matchNewArray(NewArrayTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NoAllocationChecker
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractAsKeyOfSetOrMap
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractReturnValueIgnored
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AddressSelection
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.argumentselectiondefects.ArgumentSelectionDefectChecker
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.argumentselectiondefects.AutoValueConstructorOrderChecker
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.BanClassLoader
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.BigDecimalLiteralDouble
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.BooleanParameter
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.BoxedPrimitiveConstructor
- matchNewClass(NewClassTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.NewClassTreeMatcher
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CompileTimeConstantChecker
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DeadException
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DeadThread
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DefaultCharset
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DefaultLocale
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DoubleBraceInitialization
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ErroneousThreadPoolConstructorChecker
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.formatstring.FormatStringAnnotationChecker
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.IdentityHashMapBoxing
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.IdentityHashMapUsage
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.Incomparable
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inlineme.Inliner
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.JavaUtilDateChecker
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.JdkObsolete
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MisusedDateFormat
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NoAllocationChecker
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.NullArgumentForNonNullParameter
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.ParameterMissingNullable
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.UnsafeWildcard
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NullOptional
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ParameterComment
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ParameterName
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.RestrictedApiChecker
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.StringBuilderInitWithChar
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.StringCharset
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ThreadLocalUsage
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.ImmutableChecker
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafeChecker
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ThrowSpecificExceptions
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.DateChecker
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.JodaConstructors
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.JodaToSelf
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.TimeUnitMismatch
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnnecessaryStringBuilder
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnnecessaryTypeArgument
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnsafeLocaleUsage
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnusedAnonymousClass
- matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.URLEqualsHashCode
- matchParameterizedType(ParameterizedTypeTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ParameterizedTypeTreeMatcher
- matchParameterizedType(ParameterizedTypeTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.VoidMissingNullable
- matchParenthesized(ParenthesizedTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ParenthesizedTreeMatcher
- matchParenthesized(ParenthesizedTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.UnsafeWildcard
- matchParenthesized(ParenthesizedTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnnecessaryParentheses
- matchPrimitiveType(PrimitiveTypeTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.PrimitiveTypeTreeMatcher
- matchRegexLiteral(MethodInvocationTree, VisitorState, String, int) - Method in class com.google.errorprone.bugpatterns.AbstractPatternSyntaxChecker
- matchRegexLiteral(MethodInvocationTree, VisitorState, String, int) - Method in class com.google.errorprone.bugpatterns.BareDotMetacharacter
- matchRegexLiteral(MethodInvocationTree, VisitorState, String, int) - Method in class com.google.errorprone.bugpatterns.InvalidPatternSyntax
- MatchResult() - Constructor for class com.google.errorprone.bugpatterns.collectionincompatibletype.AbstractCollectionIncompatibleTypeMatcher.MatchResult
- matchReturn(ReturnTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AsyncCallableReturnsNull
- matchReturn(ReturnTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AsyncFunctionReturnsNull
- matchReturn(ReturnTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ReturnsNullCollection
- matchReturn(ReturnTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractReturnValueIgnored
-
Returning a type from a lambda or method that returns Object loses the type information.
- matchReturn(ReturnTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ReturnTreeMatcher
- matchReturn(ReturnTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.Finally
- matchReturn(ReturnTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.dagger.ProvidesNull
-
Matches explicit "return null" statements in methods annotated with
@Provides
but not@Nullable
. - matchReturn(ReturnTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.IntLongMath
- matchReturn(ReturnTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NoAllocationChecker
- matchReturn(ReturnTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.UnsafeWildcard
- matchReturn(ReturnTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnnecessaryBoxedAssignment
- matchSingleStatementBlock(Matcher<StatementTree>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches a
BlockTree
if it single statement block with statement matchingstatementMatcher
. - MatchState - Interface in com.google.errorprone.matchers.method
-
The state that is propagated across a match operation.
- matchSwitch(SwitchTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.SwitchTreeMatcher
- matchSwitch(SwitchTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.FallThrough
- matchSwitch(SwitchTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MissingCasesInEnumSwitch
- matchSwitch(SwitchTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MissingDefault
- matchSwitch(SwitchTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.StatementSwitchToExpressionSwitch
- matchSwitch(SwitchTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.SwitchDefault
- matchSwitch(SwitchTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnnecessaryDefaultInEnumSwitch
- matchSwitch(SwitchTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.WrongOneof
- matchSynchronized(SynchronizedTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.SynchronizedTreeMatcher
- matchSynchronized(SynchronizedTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.LockOnBoxedPrimitive
- matchSynchronized(SynchronizedTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.LockOnNonEnclosingClassLiteral
- matchSynchronized(SynchronizedTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.StaticGuardedByInstance
- matchSynchronized(SynchronizedTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.SynchronizeOnNonFinalField
- matchThrow(ThrowTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ThrowTreeMatcher
- matchThrow(ThrowTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.Finally
- matchThrow(ThrowTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.RethrowReflectiveOperationExceptionAsLinkageError
- matchThrow(ThrowTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ThrowNull
- matchTry(TryTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.TryTreeMatcher
- matchTry(TryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CatchFail
- matchTry(TryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CatchingUnchecked
- matchTry(TryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ClosingStandardOutputStreams
- matchTry(TryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.InterruptedExceptionSwallowed
- matchTry(TryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MissingFail
- matchTry(TryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.TryFailRefactoring
- matchTry(TryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.TryFailThrowable
- matchTry(TryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.TryWithResourcesVariable
- matchTypeCast(TypeCastTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.android.BundleDeserializationCast
- matchTypeCast(TypeCastTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.BadComparable
- matchTypeCast(TypeCastTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.TypeCastTreeMatcher
- matchTypeCast(TypeCastTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.FloatCast
- matchTypeCast(TypeCastTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.InstanceOfAndCastMatchWrongType
- matchTypeCast(TypeCastTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NegativeCharLiteral
- matchTypeCast(TypeCastTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NoAllocationChecker
- matchTypeCast(TypeCastTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.UnsafeWildcard
- matchTypeCast(TypeCastTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnsafeReflectiveConstructionCast
- matchTypeParameter(TypeParameterTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.TypeParameterTreeMatcher
- matchTypeParameter(TypeParameterTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.JavaLangClash
- matchTypeParameter(TypeParameterTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.ExtendsObject
- matchTypeParameter(TypeParameterTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.NullableTypeParameter
- matchTypeParameter(TypeParameterTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafeChecker
- matchTypeParameter(TypeParameterTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.TypeParameterNaming
- matchTypeParameter(TypeParameterTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.VarTypeName
- matchUnary(UnaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AttemptedNegativeZero
- matchUnary(UnaryTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.UnaryTreeMatcher
- matchUnary(UnaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DiscardedPostfixExpression
- matchUnary(UnaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NoAllocationChecker
- matchUnary(UnaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NonAtomicVolatileUpdate
- matchUnionType(UnionTypeTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.UnionTypeTreeMatcher
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractMockChecker
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AnnotationPosition
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ArrayRecordComponent
- matchVariable(VariableTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.VariableTreeMatcher
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CannotMockFinalClass
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.UnnecessarilyUsedValue
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CompileTimeConstantChecker
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ConstantField
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DateFormatConstant
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DepAnn
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DeprecatedVariable
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.FieldCanBeStatic
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.flogger.FloggerRequiredModifiers
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.flogger.FloggerSplitLogStatement
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ForEachIterable
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.IdentifierName
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.IdentityHashMapUsage
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.InitializeInline
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.guice.InjectOnFinalField
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.MisplacedScopeAnnotations
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.IntLongMath
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.IterablePathParameter
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.EmptyBlockTag
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.EscapedEntity
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.InheritDoc
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.InvalidBlockTag
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.InvalidInlineTag
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.InvalidLink
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.MalformedInlineTag
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.MissingSummary
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.UnescapedEntity
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.UnrecognisedJavadocTag
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.javadoc.UrlInSee
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MixedArrayDimensions
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ModifiedButNotUsed
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MutableGuiceModule
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MutablePublicArray
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NoAllocationChecker
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NonFinalStaticField
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NullableOnContainingClass
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NullableOptional
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.FieldMissingNullable
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.MultipleNullnessAnnotations
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.NullablePrimitive
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.NullablePrimitiveArray
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.UnsafeWildcard
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.VoidMissingNullable
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.SelfAssignment
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.StaticAssignmentOfThrowable
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.StaticMockMember
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByChecker
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.time.TimeUnitMismatch
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.TransientMisuse
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnnecessaryAnonymousClass
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnnecessaryAssignment
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnnecessaryAsync
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnnecessaryBoxedAssignment
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnnecessaryFinal
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnnecessaryLambda
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.VarChecker
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.VariableNameSameAsType
- matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.Varifier
- matchWhileLoop(WhileLoopTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.WhileLoopTreeMatcher
- matchWhileLoop(WhileLoopTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.LogicalAssignment
- matchWhileLoop(WhileLoopTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.LoopConditionChecker
- matchWhileLoop(WhileLoopTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MissingBraces
- matchWildcard(WildcardTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.WildcardTreeMatcher
- MathAbsoluteNegative - Class in com.google.errorprone.bugpatterns
- MathAbsoluteNegative() - Constructor for class com.google.errorprone.bugpatterns.MathAbsoluteNegative
- MathRoundIntLong - Class in com.google.errorprone.bugpatterns
-
Check for calls to Math's
Math.round(float)
with an integer or long parameter. - MathRoundIntLong() - Constructor for class com.google.errorprone.bugpatterns.MathRoundIntLong
- MAX_CASES_TO_PRINT - Static variable in class com.google.errorprone.bugpatterns.MissingCasesInEnumSwitch
- MAX_MEMBER_IMPORTS - Static variable in class com.google.errorprone.bugpatterns.WildcardImport
-
Maximum number of members to import before switching to qualified names.
- MAY_BREAK_OR_RETURN - Enum constant in enum com.google.errorprone.refaster.ControlFlowVisitor.Result
- MAY_RETURN - Enum constant in enum com.google.errorprone.refaster.ControlFlowVisitor.Result
- MayOptionallyUse - Annotation Type in com.google.errorprone.refaster.annotation
-
Indicates that a parameter to a placeholder method is not required to be used in the placeholder's implementation.
- MEMBER_DESCRIPTOR_FIELD_NUMBER - Static variable in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
- MEMBER_DIFF - Enum constant in enum com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.DiffCase
- MEMBER_DIFF_FIELD_NUMBER - Static variable in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
- MEMBER_FIELD_NUMBER - Static variable in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
- members() - Method in class com.google.errorprone.bugpatterns.StaticImports.StaticImportInfo
-
The field or variable symbol for a static non-type member import.
- memoize(Supplier<T>) - Static method in class com.google.errorprone.VisitorState
-
Produces a cache for a function that is expected to return the same result throughout a compilation, but requires a
VisitorState
to compute that result. - MemoizeConstantVisitorStateLookups - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - MemoizeConstantVisitorStateLookups() - Constructor for class com.google.errorprone.bugpatterns.MemoizeConstantVisitorStateLookups
- merge(SuggestedFix) - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
-
Merges all edits from
other
intothis
. - merge(SuggestedFix.Builder) - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
-
Merges all edits from
other
intothis
. - merge(SuggestedFix, SuggestedFix, SuggestedFix...) - Static method in class com.google.errorprone.fixes.SuggestedFix
- mergeEverythingDiff(ApiDiffProto.EverythingDiff) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
-
.devtools.staticanalysis.errorprone.apidiff.EverythingDiff everything_diff = 1;
- mergeFrom(ApiDiffProto.ClassDiff) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
- mergeFrom(ApiDiffProto.ClassMember) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
- mergeFrom(ApiDiffProto.Diff) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
- mergeFrom(ApiDiffProto.EverythingDiff) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
- mergeFrom(ApiDiffProto.MemberDiff) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
- mergeFrom(CodedInputStream, ExtensionRegistryLite) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
- mergeFrom(CodedInputStream, ExtensionRegistryLite) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
- mergeFrom(CodedInputStream, ExtensionRegistryLite) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
- mergeFrom(CodedInputStream, ExtensionRegistryLite) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
- mergeFrom(CodedInputStream, ExtensionRegistryLite) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
- mergeFrom(Message) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
- mergeFrom(Message) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
- mergeFrom(Message) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
- mergeFrom(Message) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
- mergeFrom(Message) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
- mergeMemberDiff(ApiDiffProto.MemberDiff) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
-
.devtools.staticanalysis.errorprone.apidiff.MemberDiff member_diff = 2;
- mergeUnknownFields(UnknownFieldSet) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
- mergeUnknownFields(UnknownFieldSet) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
- mergeUnknownFields(UnknownFieldSet) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
- mergeUnknownFields(UnknownFieldSet) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
- mergeUnknownFields(UnknownFieldSet) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
- message() - Method in class com.google.errorprone.BugCheckerInfo
- message() - Method in class com.google.errorprone.bugpatterns.BugChecker
- message() - Method in class com.google.errorprone.bugpatterns.formatstring.FormatStringValidation.ValidationResult
-
A human-readable diagnostic message.
- message() - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Violation
-
Returns the explanation.
- message(AbstractCollectionIncompatibleTypeMatcher.MatchResult, String, String) - Method in class com.google.errorprone.bugpatterns.collectionincompatibletype.AbstractCollectionIncompatibleTypeMatcher
- message(String, String) - Method in class com.google.errorprone.bugpatterns.collectionincompatibletype.AbstractCollectionIncompatibleTypeMatcher.MatchResult
- MESSAGE - Static variable in class com.google.errorprone.bugpatterns.InconsistentHashCode
- method() - Method in interface com.google.errorprone.dataflow.nullnesspropagation.MethodInfo
- Method(Matcher<MethodTree>) - Constructor for class com.google.errorprone.matchers.Enclosing.Method
- METHOD - Enum constant in enum com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicyEvaluator.MethodInfo.MethodKind
-
An actual method, not a constructor.
- METHOD - Enum constant in enum com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule.RuleScope
-
The specific method or constructor for which a
ResultUsePolicy
is being chosen. - METHOD_NAME - Enum constant in enum com.google.errorprone.matchers.method.MethodInvocationMatcher.TokenType
- methodCallInDeclarationOfThrowingRunnable(VisitorState) - Static method in class com.google.errorprone.matchers.Matchers
- methodCanBeOverridden(Symbol.MethodSymbol) - Static method in class com.google.errorprone.util.ASTHelpers
-
Determines whether a method can be overridden.
- MethodCanBeStatic - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - methodHasArity(int) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches if the method accepts the given number of arguments.
- methodHasNoParameters() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node that represents a method declaration with no parameters.
- methodHasParameters(ChildMultiMatcher.MatchType, Matcher<VariableTree>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches if the given matcher matches all of/any of the parameters to this method.
- methodHasParameters(Matcher<VariableTree>...) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node that represents a method declaration, based on the list of variableMatchers.
- methodHasParameters(List<Matcher<VariableTree>>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node that represents a method declaration, based on the list of variableMatchers.
- MethodHasParameters - Class in com.google.errorprone.matchers
-
Matches if the given matcher matches all of/any of the parameters to this method.
- MethodHasParameters(ChildMultiMatcher.MatchType, Matcher<VariableTree>) - Constructor for class com.google.errorprone.matchers.MethodHasParameters
- methodHasVisibility(MethodVisibility.Visibility) - Static method in class com.google.errorprone.matchers.Matchers
- MethodInfo - Interface in com.google.errorprone.dataflow.nullnesspropagation
-
Represents a Java method.
- methodInvocation(Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node if it is a method invocation and the method select matches
methodSelectMatcher
. - methodInvocation(Matcher<ExpressionTree>, ChildMultiMatcher.MatchType, Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node if it is a method invocation and the given matchers match.
- MethodInvocation - Class in com.google.errorprone.matchers
-
Matches a method invocation based on a matcher for the method select (receiver + method identifier) and one for the arguments.
- MethodInvocation(Matcher<ExpressionTree>, ChildMultiMatcher.MatchType, Matcher<ExpressionTree>) - Constructor for class com.google.errorprone.matchers.MethodInvocation
-
Creates a new matcher for method invocations based on a method select and an argument matcher.
- MethodInvocationArgument - Class in com.google.errorprone.matchers
-
Applies an Expression matcher to an argument of a MethodInvocation by position.
- MethodInvocationArgument(int, Matcher<ExpressionTree>) - Constructor for class com.google.errorprone.matchers.MethodInvocationArgument
- MethodInvocationMatcher - Class in com.google.errorprone.matchers.method
-
The machinery and type definitions necessary to model and compile a single efficient matcher out of a list of
MethodMatchers.MethodMatcher
s. - MethodInvocationMatcher.MethodKind - Enum in com.google.errorprone.matchers.method
-
The kinds of things that count as a method invocation.
- MethodInvocationMatcher.Rule - Class in com.google.errorprone.matchers.method
-
A rule describing a set of constraints for a method invocation.
- MethodInvocationMatcher.Token - Interface in com.google.errorprone.matchers.method
-
A specific value for a property that a method invocation can have.
- MethodInvocationMatcher.Token.DefinedIn - Class in com.google.errorprone.matchers.method
-
A token specifying the class or interface in which the invoked method was defined.
- MethodInvocationMatcher.Token.Kind - Class in com.google.errorprone.matchers.method
-
A token limiting the
MethodInvocationMatcher.Token.Kind
of invocation to match. - MethodInvocationMatcher.Token.MethodName - Class in com.google.errorprone.matchers.method
-
A token limiting the name of the method being invoked.
- MethodInvocationMatcher.Token.ParameterTypes - Class in com.google.errorprone.matchers.method
-
A token limiting the types of the formal parameters of the method being invoked.
- MethodInvocationMatcher.Token.ReceiverSupertype - Class in com.google.errorprone.matchers.method
-
A token specifying that the class of the object on which the method is being invoked must be a subtype of another type.
- MethodInvocationMatcher.Token.ReceiverType - Class in com.google.errorprone.matchers.method
-
A token specifying the exact type of the object on which the method is being invoked (or the class in which it is defined, for static methods).
- MethodInvocationMatcher.TokenType - Enum in com.google.errorprone.matchers.method
-
The kinds of properties a matcher can match against.
- methodIsConstructor() - Static method in class com.google.errorprone.matchers.Matchers
- methodIsNamed(String) - Static method in class com.google.errorprone.matchers.Matchers
-
Match a method declaration with a specific name.
- methodIsPublicAndNotAnOverride(Symbol.MethodSymbol, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns true if the given method symbol is public (both the method and the enclosing class) and does not have a super-method (i.e., it is not an
@Override
). - methodMatcher() - Method in class com.google.errorprone.bugpatterns.JUnit4SetUpNotRun
- methodMatcher() - Method in class com.google.errorprone.bugpatterns.JUnit4TearDownNotRun
- MethodMatchers - Class in com.google.errorprone.matchers.method
- MethodMatchers.AnyMethodMatcher - Interface in com.google.errorprone.matchers.method
-
Deprecated.use
Matcher<ExpressionTree>
instead of referring directly to this type. - MethodMatchers.ConstructorClassMatcher - Interface in com.google.errorprone.matchers.method
-
Deprecated.use
Matcher<ExpressionTree>
instead of referring directly to this type. - MethodMatchers.ConstructorMatcher - Interface in com.google.errorprone.matchers.method
-
Deprecated.use
Matcher<ExpressionTree>
instead of referring directly to this type. - MethodMatchers.InstanceMethodMatcher - Interface in com.google.errorprone.matchers.method
-
Deprecated.use
Matcher<ExpressionTree>
instead of referring directly to this type. - MethodMatchers.MethodClassMatcher - Interface in com.google.errorprone.matchers.method
-
Deprecated.use
Matcher<ExpressionTree>
instead of referring directly to this type. - MethodMatchers.MethodMatcher - Interface in com.google.errorprone.matchers.method
-
Deprecated.use
Matcher<ExpressionTree>
instead of referring directly to this type. - MethodMatchers.MethodNameMatcher - Interface in com.google.errorprone.matchers.method
-
Deprecated.use
Matcher<ExpressionTree>
instead of referring directly to this type. - MethodMatchers.MethodSignatureMatcher - Interface in com.google.errorprone.matchers.method
-
Deprecated.use
Matcher<ExpressionTree>
instead of referring directly to this type. - MethodMatchers.ParameterMatcher - Interface in com.google.errorprone.matchers.method
-
Deprecated.use
Matcher<ExpressionTree>
instead of referring directly to this type. - MethodMatchers.StaticMethodMatcher - Interface in com.google.errorprone.matchers.method
-
Deprecated.use
Matcher<ExpressionTree>
instead of referring directly to this type. - methodName() - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.Api
-
Returns the simple name of the method.
- methodName() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.MethodName
- MethodName() - Constructor for class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.MethodName
- methodNameAndParams(Symbol.MethodSymbol, Types) - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.ExternalCanIgnoreReturnValue
- methodNameStartsWith(String) - Static method in class com.google.errorprone.matchers.Matchers
-
Match a method declaration that starts with a given string.
- methodReferenceIgnoresResult(String, String, String, String, String) - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.ErrorMessages
-
Error message for when a method or constructor is referenced in such a way that its return value would be ignored if invoked through the reference, and the
ResultUsePolicy
of the referenced method or constructor evaluates toResultUsePolicy.EXPECTED
. - methodReturns(Matcher<? super Tree>) - Static method in class com.google.errorprone.matchers.Matchers
- methodReturns(Supplier<Type>) - Static method in class com.google.errorprone.matchers.Matchers
- methodReturnsNonNull() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches a method invocation that is known to never return null.
- methodReturnsNonPrimitiveType() - Static method in class com.google.errorprone.matchers.Matchers
-
Match a method that returns a non-primitive type.
- MethodRule(Class<M>) - Constructor for class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule.MethodRule
- methodsReferenced() - Method in class com.google.errorprone.bugpatterns.CanBeStaticAnalyzer.CanBeStaticResult
-
Set of instance methods referenced by the method under inspection.
- MethodVisibility - Class in com.google.errorprone.matchers
-
A matcher for method visibility (public, private, protected, or default).
- MethodVisibility(MethodVisibility.Visibility) - Constructor for class com.google.errorprone.matchers.MethodVisibility
- MethodVisibility.Visibility - Enum in com.google.errorprone.matchers
-
The visibility of a member.
- methodWithClassAndName(String, String) - Static method in class com.google.errorprone.matchers.Matchers
-
Match a method declaration with a specific enclosing class and method name.
- MisformattedTestData - Class in com.google.errorprone.bugpatterns
-
See the summary.
- MisformattedTestData() - Constructor for class com.google.errorprone.bugpatterns.MisformattedTestData
- MislabeledAndroidString - Class in com.google.errorprone.bugpatterns.android
-
Replacement of misleading android.R.string constants with more intuitive ones.
- MislabeledAndroidString() - Constructor for class com.google.errorprone.bugpatterns.android.MislabeledAndroidString
- MisleadingEscapedSpace - Class in com.google.errorprone.bugpatterns
-
See the summary.
- MisleadingEscapedSpace() - Constructor for class com.google.errorprone.bugpatterns.MisleadingEscapedSpace
- MisplacedScopeAnnotations - Class in com.google.errorprone.bugpatterns.inject
-
Bug checker for when a scope annotation is used at injection site, which does not have any effect on the injected values.
- MisplacedScopeAnnotations() - Constructor for class com.google.errorprone.bugpatterns.inject.MisplacedScopeAnnotations
- MissingBraces - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - MissingBraces() - Constructor for class com.google.errorprone.bugpatterns.MissingBraces
- MissingCasesInEnumSwitch - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - MissingCasesInEnumSwitch() - Constructor for class com.google.errorprone.bugpatterns.MissingCasesInEnumSwitch
- MissingDefault - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - MissingDefault() - Constructor for class com.google.errorprone.bugpatterns.MissingDefault
- MissingFail - Class in com.google.errorprone.bugpatterns
- MissingFail() - Constructor for class com.google.errorprone.bugpatterns.MissingFail
- MissingImplementsComparable - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - MissingImplementsComparable() - Constructor for class com.google.errorprone.bugpatterns.MissingImplementsComparable
- MissingOverride - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - MissingRefasterAnnotation - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - MissingRefasterAnnotation() - Constructor for class com.google.errorprone.bugpatterns.MissingRefasterAnnotation
- MissingRuntimeRetention - Class in com.google.errorprone.bugpatterns.inject
- MissingRuntimeRetention() - Constructor for class com.google.errorprone.bugpatterns.inject.MissingRuntimeRetention
- MissingSummary - Class in com.google.errorprone.bugpatterns.javadoc
-
Matches Javadocs which are missing a required summary line.
- MissingSummary() - Constructor for class com.google.errorprone.bugpatterns.javadoc.MissingSummary
- MissingSuperCall - Class in com.google.errorprone.bugpatterns
- MissingSuperCall() - Constructor for class com.google.errorprone.bugpatterns.MissingSuperCall
- MissingTestCall - Class in com.google.errorprone.bugpatterns
-
Matches test helpers which require a terminating method to be called.
- MissingTestCall() - Constructor for class com.google.errorprone.bugpatterns.MissingTestCall
- MisusedDateFormat - Class in com.google.errorprone.bugpatterns
-
Base class for checks which find common errors in date format patterns.
- MisusedDateFormat() - Constructor for class com.google.errorprone.bugpatterns.MisusedDateFormat
- MisusedDayOfYear - Class in com.google.errorprone.bugpatterns
-
Ban use of D (day-of-year) in a date format pattern that also contains M (month-of-year).
- MisusedDayOfYear() - Constructor for class com.google.errorprone.bugpatterns.MisusedDayOfYear
- MisusedWeekYear - Class in com.google.errorprone.bugpatterns
-
Ban use of YYYY in a SimpleDateFormat pattern, unless it is being used for a week date.
- MisusedWeekYear() - Constructor for class com.google.errorprone.bugpatterns.MisusedWeekYear
- MixedArrayDimensions - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - MixedArrayDimensions() - Constructor for class com.google.errorprone.bugpatterns.MixedArrayDimensions
- MixedDescriptors - Class in com.google.errorprone.bugpatterns
-
Checks for calls to
Descriptor#findFieldByNumber
with field numbers from a different proto. - MixedDescriptors() - Constructor for class com.google.errorprone.bugpatterns.MixedDescriptors
- MixedMutabilityReturnType - Class in com.google.errorprone.bugpatterns
-
Flags methods which return mutable collections from some code paths, but immutable ones from others.
- MixedMutabilityReturnType() - Constructor for class com.google.errorprone.bugpatterns.MixedMutabilityReturnType
- MOCKING_CALL - Enum constant in enum com.google.errorprone.matchers.UnusedReturnValueMatcher.AllowReason
-
The context is a mocking call such as in
verify(foo).getBar();
. - MOCKING_METHOD - Static variable in class com.google.errorprone.bugpatterns.AbstractMockChecker
-
A TypeExtractor for method invocations that create a mock using Mockito.mock, Mockito.spy, or EasyMock.create[...]Mock, extracting the type being mocked.
- MockitoDoSetup - Class in com.google.errorprone.bugpatterns
-
A BugPattern; see the summary.
- MockitoDoSetup() - Constructor for class com.google.errorprone.bugpatterns.MockitoDoSetup
- mockitoInvocation(Tree, VisitorState) - Static method in class com.google.errorprone.matchers.UnusedReturnValueMatcher
-
Don't match the method that is invoked through
Mockito.verify(t)
ordoReturn(val).when(t)
. - MockitoUsage - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - MockitoUsage() - Constructor for class com.google.errorprone.bugpatterns.MockitoUsage
- MockNotUsedInProduction - Class in com.google.errorprone.bugpatterns
-
A BugPattern; see the summary.
- MockNotUsedInProduction() - Constructor for class com.google.errorprone.bugpatterns.MockNotUsedInProduction
- ModifiedButNotUsed - Class in com.google.errorprone.bugpatterns
-
Matches creation of new collections/proto builders which are modified but never used.
- ModifiedButNotUsed() - Constructor for class com.google.errorprone.bugpatterns.ModifiedButNotUsed
- modifier() - Element in annotation type com.google.errorprone.annotations.IncompatibleModifiers
-
The incompatible modifiers.
- modifier() - Element in annotation type com.google.errorprone.annotations.RequiredModifiers
-
The required modifiers.
- Modifier - Enum in com.google.errorprone.annotations
-
Modifiers in the Java language, as specified in: https://docs.oracle.com/javase/specs/jls/se11/html/jls-8.html#jls-8.1.1 https://docs.oracle.com/javase/specs/jls/se11/html/jls-8.html#jls-8.3.1 https://docs.oracle.com/javase/specs/jls/se11/html/jls-8.html#jls-8.4.3 https://docs.oracle.com/javase/specs/jls/se11/html/jls-9.html#jls-9.4
- ModifyCollectionInEnhancedForLoop - Class in com.google.errorprone.bugpatterns
- ModifyCollectionInEnhancedForLoop() - Constructor for class com.google.errorprone.bugpatterns.ModifyCollectionInEnhancedForLoop
- ModifyingCollectionWithItself - Class in com.google.errorprone.bugpatterns
- ModifyingCollectionWithItself() - Constructor for class com.google.errorprone.bugpatterns.ModifyingCollectionWithItself
- ModifySourceCollectionInStream - Class in com.google.errorprone.bugpatterns
-
Identify the backing collection source of a stream and reports if the source is mutated during the stream operations.
- ModifySourceCollectionInStream() - Constructor for class com.google.errorprone.bugpatterns.ModifySourceCollectionInStream
- MoreAnnotations - Class in com.google.errorprone.util
-
Annotation-related utilities.
- MoreThanOneInjectableConstructor - Class in com.google.errorprone.bugpatterns.inject
-
Matches classes that have two or more constructors annotated with @Inject.
- MoreThanOneInjectableConstructor() - Constructor for class com.google.errorprone.bugpatterns.inject.MoreThanOneInjectableConstructor
- MoreThanOneQualifier - Class in com.google.errorprone.bugpatterns.inject
- MoreThanOneQualifier() - Constructor for class com.google.errorprone.bugpatterns.inject.MoreThanOneQualifier
- MoreThanOneScopeAnnotationOnClass - Class in com.google.errorprone.bugpatterns.inject
-
This checker matches if a class has more than one annotation that is a scope annotation(that is, the annotation is either annotated with Guice's
@ScopeAnnotation
or Javax's@Scope
). - MoreThanOneScopeAnnotationOnClass() - Constructor for class com.google.errorprone.bugpatterns.inject.MoreThanOneScopeAnnotationOnClass
- MULTIMAP - Enum constant in enum com.google.errorprone.bugpatterns.TypesWithUndefinedEquality
- MultimapKeys - Class in com.google.errorprone.bugpatterns
-
A BugPattern; see the summary.
- MultimapKeys() - Constructor for class com.google.errorprone.bugpatterns.MultimapKeys
- MultiMatcher<T,
N> - Interface in com.google.errorprone.matchers -
An matcher that applies a single matcher across multiple tree nodes.
- MultiMatcher.MultiMatchResult<N> - Class in com.google.errorprone.matchers
-
A result from the call of
MultiMatcher.multiMatchResult(Tree, VisitorState)
, containing information about whether it matched, and if so, what nodes matched. - multiMatchResult(T, VisitorState) - Method in class com.google.errorprone.matchers.ChildMultiMatcher
- multiMatchResult(T, VisitorState) - Method in interface com.google.errorprone.matchers.MultiMatcher
-
Attempt to match the given node, and return the associated subnodes that matched.
- MultipleNullnessAnnotations - Class in com.google.errorprone.bugpatterns.nullness
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - MultipleNullnessAnnotations() - Constructor for class com.google.errorprone.bugpatterns.nullness.MultipleNullnessAnnotations
- MultipleParallelOrSequentialCalls - Class in com.google.errorprone.bugpatterns
- MultipleParallelOrSequentialCalls() - Constructor for class com.google.errorprone.bugpatterns.MultipleParallelOrSequentialCalls
- MultipleTopLevelClasses - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - MultipleTopLevelClasses() - Constructor for class com.google.errorprone.bugpatterns.MultipleTopLevelClasses
- MultipleUnaryOperatorsInMethodCall - Class in com.google.errorprone.bugpatterns
- MultipleUnaryOperatorsInMethodCall() - Constructor for class com.google.errorprone.bugpatterns.MultipleUnaryOperatorsInMethodCall
- MULTIPLICATIVE - Enum constant in enum com.google.errorprone.util.OperatorPrecedence
- MultiVariableDeclaration - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - MultiVariableDeclaration() - Constructor for class com.google.errorprone.bugpatterns.MultiVariableDeclaration
- MustBeClosed - Annotation Type in com.google.errorprone.annotations
-
Annotation for constructors of AutoCloseables or methods that return an AutoCloseable and require that the resource is closed.
- MustBeClosedChecker - Class in com.google.errorprone.bugpatterns
-
Checks if a constructor or method annotated with
MustBeClosed
is called within the resource variable initializer of a try-with-resources statement. - MustBeClosedChecker() - Constructor for class com.google.errorprone.bugpatterns.MustBeClosedChecker
- MUTABLE_TO_IMMUTABLE_CLASS_NAME_MAP - Static variable in class com.google.errorprone.bugpatterns.ImmutableCollections
- mutableEnclosingInstance(Optional<ClassTree>, Type.ClassType) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety
-
Returns an enclosing instance for the specified type if it is thread-safe.
- MutableGuiceModule - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - mutableProtos() - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.ProtoRules
-
Returns a rule that handles mutable protos, making their fluent setter methods' results ignorable.
- MutablePublicArray - Class in com.google.errorprone.bugpatterns
-
Check for public static final declaration of Arrays.
- MutablePublicArray() - Constructor for class com.google.errorprone.bugpatterns.MutablePublicArray
N
- name - Variable in class com.google.errorprone.BugPatternInstance
- name() - Element in annotation type com.google.errorprone.BugPattern
-
A unique identifier for this bug, used for @SuppressWarnings and in the compiler error message.
- name() - Method in class com.google.errorprone.util.ErrorProneToken
- named(String) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.MethodClassMatcher
-
Deprecated.Match methods with the given name.
- namedAnyOf(Iterable<String>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.MethodClassMatcher
-
Deprecated.Match methods with any of the given names.
- namedAnyOf(String...) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.MethodClassMatcher
-
Deprecated.Match methods with any of the given names.
- NamedLikeContextualKeyword - Class in com.google.errorprone.bugpatterns
-
Warns on classes or methods being named similarly to contextual keywords, or invoking such methods.
- NamedLikeContextualKeyword() - Constructor for class com.google.errorprone.bugpatterns.NamedLikeContextualKeyword
- NamedParameterComment - Class in com.google.errorprone.bugpatterns.argumentselectiondefects
-
Helper methods for checking if a commented argument matches a formal parameter and for generating comments in the right format.
- names() - Method in class com.google.errorprone.refaster.Inliner
- NamingConventions - Class in com.google.errorprone.names
-
Utility functions for dealing with Java naming conventions
- NarrowCalculation - Class in com.google.errorprone.bugpatterns
-
A BugPattern; see the summary.
- NarrowCalculation() - Constructor for class com.google.errorprone.bugpatterns.NarrowCalculation
- NarrowingCompoundAssignment - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - NarrowingCompoundAssignment() - Constructor for class com.google.errorprone.bugpatterns.NarrowingCompoundAssignment
- NATIVE - Enum constant in enum com.google.errorprone.annotations.Modifier
- NCopiesOfChar - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - NCopiesOfChar() - Constructor for class com.google.errorprone.bugpatterns.NCopiesOfChar
- NearbyCallers - Class in com.google.errorprone.bugpatterns.time
-
Utility class to find calls "nearby" other calls.
- NeedlemanWunschEditDistance - Class in com.google.errorprone.names
-
The Needleman-Wunsch algorithm for finding least-cost string edit distances between pairs of strings.
- negate() - Method in class com.google.errorprone.refaster.UAnyOf
- negate() - Method in class com.google.errorprone.refaster.UExpression
- negate() - Method in class com.google.errorprone.refaster.ULiteral
- negation() - Method in class com.google.errorprone.refaster.ExpressionTemplate
- NegativeCharLiteral - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - NegativeCharLiteral() - Constructor for class com.google.errorprone.bugpatterns.NegativeCharLiteral
- NestedInstanceOfConditions - Class in com.google.errorprone.bugpatterns
- NestedInstanceOfConditions() - Constructor for class com.google.errorprone.bugpatterns.NestedInstanceOfConditions
- nestingKind(NestingKind) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an class based on whether it is nested in another class or method.
- NEVER_EXITS - Enum constant in enum com.google.errorprone.refaster.ControlFlowVisitor.Result
- newArray(int) - Static method in class com.google.errorprone.refaster.Refaster
-
This is a placeholder for
new T[size]
. - newBuilder() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
- newBuilder() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
- newBuilder() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
- newBuilder() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
- newBuilder() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
- newBuilder(ApiDiffProto.ClassDiff) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
- newBuilder(ApiDiffProto.ClassMember) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
- newBuilder(ApiDiffProto.Diff) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
- newBuilder(ApiDiffProto.EverythingDiff) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
- newBuilder(ApiDiffProto.MemberDiff) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
- newBuilderForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
- newBuilderForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
- newBuilderForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
- newBuilderForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
- newBuilderForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
- newBuilderForType(GeneratedMessageV3.BuilderParent) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
- newBuilderForType(GeneratedMessageV3.BuilderParent) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
- newBuilderForType(GeneratedMessageV3.BuilderParent) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
- newBuilderForType(GeneratedMessageV3.BuilderParent) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
- newBuilderForType(GeneratedMessageV3.BuilderParent) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
- NewFileSystem - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - NewFileSystem() - Constructor for class com.google.errorprone.bugpatterns.NewFileSystem
- newInstance(BugChecker, Class<?>) - Static method in class com.google.errorprone.BugCheckerRefactoringTestHelper
-
Deprecated.
- newInstance(ScannerSupplier, Class<?>) - Static method in class com.google.errorprone.BugCheckerRefactoringTestHelper
-
Returns a new
CompilationTestHelper
. - newInstance(ScannerSupplier, Class<?>) - Static method in class com.google.errorprone.CompilationTestHelper
-
Returns a new
CompilationTestHelper
. - newInstance(GeneratedMessageV3.UnusedPrivateParameter) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
- newInstance(GeneratedMessageV3.UnusedPrivateParameter) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
- newInstance(GeneratedMessageV3.UnusedPrivateParameter) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
- newInstance(GeneratedMessageV3.UnusedPrivateParameter) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
- newInstance(GeneratedMessageV3.UnusedPrivateParameter) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
- newInstance(Class<? extends BugChecker>, Class<?>) - Static method in class com.google.errorprone.BugCheckerRefactoringTestHelper
- newInstance(Class<? extends BugChecker>, Class<?>) - Static method in class com.google.errorprone.CompilationTestHelper
-
Returns a new
CompilationTestHelper
. - nextStatement(Matcher<StatementTree>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches a statement AST node if the following statement in the enclosing block matches the given matcher.
- NO_MATCH - Static variable in class com.google.errorprone.matchers.Description
-
Describes the sentinel value of the case where the match failed.
- NoAllocation - Annotation Type in com.google.errorprone.annotations
-
Annotation for method declarations, which denotes that this method will not cause allocations that are visible from source code.
- NoAllocationChecker - Class in com.google.errorprone.bugpatterns
-
Checks methods annotated with
@NoAllocation
to ensure they really do not allocate. - NoAllocationChecker() - Constructor for class com.google.errorprone.bugpatterns.NoAllocationChecker
- NoAutoboxing - Annotation Type in com.google.errorprone.refaster.annotation
-
Indicates that a Refaster rule should not allow autoboxing when it is typechecking a match.
- NoCanIgnoreReturnValueOnClasses - Class in com.google.errorprone.bugpatterns.checkreturnvalue
-
Checker that "pushes" the
@CanIgnoreReturnValue
annotation down from classes to methods. - NoCanIgnoreReturnValueOnClasses() - Constructor for class com.google.errorprone.bugpatterns.checkreturnvalue.NoCanIgnoreReturnValueOnClasses
- nodeMatcher - Variable in class com.google.errorprone.matchers.ChildMultiMatcher
-
The matcher to apply to the subnodes in question.
- NON_CLASS_NAME_WITH_T_SUFFIX - Enum constant in enum com.google.errorprone.bugpatterns.TypeParameterNaming.TypeParameterNamingClassification
-
Names of the form which are not camel case, but nonetheless have a Capital T at the end and this shouldn't suggest to add more.
- NonApiType - Class in com.google.errorprone.bugpatterns
-
Flags instances of non-API types from being accepted or returned in APIs.
- NonApiType() - Constructor for class com.google.errorprone.bugpatterns.NonApiType
- NonAtomicVolatileUpdate - Class in com.google.errorprone.bugpatterns
-
Detects non-atomic updates to volatile variables.
- NonAtomicVolatileUpdate() - Constructor for class com.google.errorprone.bugpatterns.NonAtomicVolatileUpdate
- NonCanonicalStaticImport - Class in com.google.errorprone.bugpatterns
-
Types shouldn't be statically by their non-canonical name.
- NonCanonicalStaticImport() - Constructor for class com.google.errorprone.bugpatterns.NonCanonicalStaticImport
- NonCanonicalStaticMemberImport - Class in com.google.errorprone.bugpatterns
-
Members shouldn't be statically imported by their non-canonical name.
- NonCanonicalStaticMemberImport() - Constructor for class com.google.errorprone.bugpatterns.NonCanonicalStaticMemberImport
- NonCanonicalType - Class in com.google.errorprone.bugpatterns
-
Flags types being referred to by their non-canonical name.
- NonCanonicalType() - Constructor for class com.google.errorprone.bugpatterns.NonCanonicalType
- none() - Static method in class com.google.errorprone.refaster.Choice
-
The empty
Choice
. - NONE - Enum constant in enum com.google.errorprone.BugPattern.LinkType
-
No link should be displayed.
- NONE - Enum constant in enum com.google.errorprone.util.Visibility
- NonFinalCompileTimeConstant - Class in com.google.errorprone.bugpatterns
-
Enforce that @CompileTimeConstant parameters are final or effectively final.
- NonFinalCompileTimeConstant() - Constructor for class com.google.errorprone.bugpatterns.NonFinalCompileTimeConstant
- NonFinalStaticField - Class in com.google.errorprone.bugpatterns
-
A BugPattern; see the summary.
- NonFinalStaticField() - Constructor for class com.google.errorprone.bugpatterns.NonFinalStaticField
- NONNULL - Enum constant in enum com.google.errorprone.dataflow.nullnesspropagation.Nullness
- nonNullLiteral() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node if it is a literal other than null.
- NonOverridingEquals - Class in com.google.errorprone.bugpatterns
-
Bug checker for equals methods that don't actually override equals.
- NonOverridingEquals() - Constructor for class com.google.errorprone.bugpatterns.NonOverridingEquals
- NonRuntimeAnnotation - Class in com.google.errorprone.bugpatterns
- NonRuntimeAnnotation() - Constructor for class com.google.errorprone.bugpatterns.NonRuntimeAnnotation
- not(Matcher<T>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node iff it does not match the given matcher.
- not(TypePredicate) - Static method in class com.google.errorprone.predicates.TypePredicates
- nothing() - Static method in class com.google.errorprone.matchers.Matchers
-
A matcher that matches no AST node.
- nothing() - Static method in class com.google.errorprone.predicates.TypePredicates
-
Matches nothing (always
false
). - NotJavadoc - Class in com.google.errorprone.bugpatterns.javadoc
-
A BugPattern; see the summary.
- NotJavadoc() - Constructor for class com.google.errorprone.bugpatterns.javadoc.NotJavadoc
- NotMatches - Annotation Type in com.google.errorprone.refaster.annotation
-
Specify an error-prone
Matcher
to further restrict what expressions are matched by the annotated parameter. - NULL - Enum constant in enum com.google.errorprone.dataflow.nullnesspropagation.Nullness
- NULLABLE - Enum constant in enum com.google.errorprone.dataflow.nullnesspropagation.Nullness
-
The lattice for nullness looks like:
- NullableConstructor - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - NullableConstructor() - Constructor for class com.google.errorprone.bugpatterns.NullableConstructor
- NullableOnContainingClass - Class in com.google.errorprone.bugpatterns
-
A bugpattern; see the summary.
- NullableOnContainingClass() - Constructor for class com.google.errorprone.bugpatterns.NullableOnContainingClass
- NullableOptional - Class in com.google.errorprone.bugpatterns
- NullableOptional() - Constructor for class com.google.errorprone.bugpatterns.NullableOptional
- NullablePrimitive - Class in com.google.errorprone.bugpatterns.nullness
- NullablePrimitive() - Constructor for class com.google.errorprone.bugpatterns.nullness.NullablePrimitive
- NullablePrimitiveArray - Class in com.google.errorprone.bugpatterns.nullness
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - NullablePrimitiveArray() - Constructor for class com.google.errorprone.bugpatterns.nullness.NullablePrimitiveArray
- NullableTypeParameter - Class in com.google.errorprone.bugpatterns.nullness
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - NullableTypeParameter() - Constructor for class com.google.errorprone.bugpatterns.nullness.NullableTypeParameter
- NullableVoid - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - NullableVoid() - Constructor for class com.google.errorprone.bugpatterns.NullableVoid
- NullableWildcard - Class in com.google.errorprone.bugpatterns.nullness
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - NullableWildcard() - Constructor for class com.google.errorprone.bugpatterns.nullness.NullableWildcard
- NullArgumentForNonNullParameter - Class in com.google.errorprone.bugpatterns.nullness
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - nullLit() - Static method in class com.google.errorprone.refaster.ULiteral
- nullLiteral() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node if it is a null literal.
- Nullness - Enum in com.google.errorprone.dataflow.nullnesspropagation
-
Represents one of the possible nullness values in our nullness analysis.
- NullnessAnalysis - Class in com.google.errorprone.dataflow.nullnesspropagation
-
An interface to the nullness analysis.
- NullnessAnnotations - Class in com.google.errorprone.dataflow.nullnesspropagation
-
Utilities to extract
Nullness
from annotations. - NullnessMatcher - Class in com.google.errorprone.matchers
-
Matches an expression based on the result of the nullness dataflow analysis.
- NullnessMatcher(Nullness) - Constructor for class com.google.errorprone.matchers.NullnessMatcher
- NullnessQualifierInference - Class in com.google.errorprone.dataflow.nullnesspropagation.inference
-
Eagerly traverse one
MethodTree
at a time and accumulate constraints between nullness qualifiers. - NullOptional - Class in com.google.errorprone.bugpatterns
-
Flags passing literal null to
Optional
-accepting APIs. - NullOptional() - Constructor for class com.google.errorprone.bugpatterns.NullOptional
- NullTernary - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - NullTernary() - Constructor for class com.google.errorprone.bugpatterns.NullTernary
- numberValue(TreePath, Context) - Static method in class com.google.errorprone.dataflow.ConstantPropagationAnalysis
-
Returns the value of the leaf of
exprPath
, if it is determined to be a constant (always evaluates to the same numeric value), and null otherwise.
O
- OBJECT_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
- ObjectEqualsForPrimitives - Class in com.google.errorprone.bugpatterns
-
Check for usage of
Objects.equal
on primitive types. - ObjectEqualsForPrimitives() - Constructor for class com.google.errorprone.bugpatterns.ObjectEqualsForPrimitives
- ObjectsHashCodePrimitive - Class in com.google.errorprone.bugpatterns
-
Check for calls to Objects'
Objects.hashCode(java.lang.Object)
with a primitive parameter. - ObjectsHashCodePrimitive() - Constructor for class com.google.errorprone.bugpatterns.ObjectsHashCodePrimitive
- ObjectToString - Class in com.google.errorprone.bugpatterns
-
Warns against calling toString() on Objects which don't have toString() method overridden and won't produce meaningful output.
- of(boolean, Set<Symbol.MethodSymbol>) - Static method in class com.google.errorprone.bugpatterns.CanBeStaticAnalyzer.CanBeStaticResult
- of(Type, String) - Static method in class com.google.errorprone.bugpatterns.AbstractMockChecker.Reason
- of(CharSequence) - Static method in class com.google.errorprone.refaster.StringName
- of(String) - Static method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Violation
-
Creates an explanation with one step.
- of(T) - Static method in class com.google.errorprone.refaster.Choice
-
Returns a
Choice
with only one option,t
. - OFF - Enum constant in enum com.google.errorprone.ErrorProneOptions.Severity
- OfKind - Annotation Type in com.google.errorprone.refaster.annotation
-
Annotation to specify what tree kinds are allowed or disallowed to match a given expression.
- onClass(TypePredicate) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.AnyMethodMatcher
-
Deprecated.Match the given type exactly.
- onClass(TypePredicate) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.InstanceMethodMatcher
-
Deprecated.Match on types that satisfy the given predicate.
- onClass(TypePredicate) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.StaticMethodMatcher
-
Deprecated.Match on types that satisfy the given predicate.
- onClass(Supplier<Type>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.StaticMethodMatcher
-
Deprecated.Match on the given type exactly.
- onClass(String) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.AnyMethodMatcher
-
Deprecated.Match on types with the given fully-qualified name.
- onClass(String) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.StaticMethodMatcher
-
Deprecated.Match on types with the given fully-qualified name.
- onClassAny(Iterable<String>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.StaticMethodMatcher
-
Deprecated.Match on types that are equal to any of the given types.
- onClassAny(String...) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.StaticMethodMatcher
-
Deprecated.Match on types that are equal to any of the given types.
- onDescendantOf(Supplier<Type>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.AnyMethodMatcher
-
Deprecated.Match on descendants of the given type.
- onDescendantOf(Supplier<Type>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.InstanceMethodMatcher
-
Deprecated.Match on descendants of the given type.
- onDescendantOf(Supplier<Type>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.StaticMethodMatcher
-
Deprecated.Match on descendants of the given type.
- onDescendantOf(String) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.AnyMethodMatcher
-
Deprecated.Match on descendants of the given fully-qualified type name.
- onDescendantOf(String) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.InstanceMethodMatcher
-
Deprecated.Match on descendants of the given fully-qualified type name.
- onDescendantOf(String) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.StaticMethodMatcher
-
Deprecated.Match on descendants of the given fully-qualified type name.
- onDescendantOfAny(Iterable<String>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.AnyMethodMatcher
-
Deprecated.Match on types that are descendants of any of the given types.
- onDescendantOfAny(Iterable<String>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.InstanceMethodMatcher
-
Deprecated.Match on types that are descendants of any of the given types.
- onDescendantOfAny(Iterable<String>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.StaticMethodMatcher
-
Deprecated.Match on types that are descendants of any of the given types.
- onDescendantOfAny(String...) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.AnyMethodMatcher
-
Deprecated.Match on types that are descendants of any of the given types.
- onDescendantOfAny(String...) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.InstanceMethodMatcher
-
Deprecated.Match on types that are descendants of any of the given types.
- onDescendantOfAny(String...) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.StaticMethodMatcher
-
Deprecated.Match on types that are descendants of any of the given types.
- onDescribed(Description) - Method in class com.google.errorprone.apply.DescriptionBasedDiff
- onDescribed(Description) - Method in interface com.google.errorprone.DescriptionListener
-
Reports a suggested modification to the code.
- onDescribed(Description) - Method in class com.google.errorprone.JavacErrorDescriptionListener
- onExactClass(Supplier<Type>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.InstanceMethodMatcher
-
Deprecated.Match on the given type exactly.
- onExactClass(String) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.InstanceMethodMatcher
-
Deprecated.Match on types with the given fully-qualified name.
- onExactClassAny(Iterable<String>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.InstanceMethodMatcher
-
Deprecated.Match on types that are exactly the same as any of the given types.
- onExactClassAny(String...) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.InstanceMethodMatcher
-
Deprecated.Match on types that are exactly the same as any of the given types.
- onlyMatchingNode() - Method in class com.google.errorprone.matchers.MultiMatcher.MultiMatchResult
- OperatorPrecedence - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - OperatorPrecedence - Enum in com.google.errorprone.util
-
The precedence for an operator kind in the
invalid reference
com.sun.source.tree
- OperatorPrecedence() - Constructor for class com.google.errorprone.bugpatterns.OperatorPrecedence
- OPTIONAL - Enum constant in enum com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicy
-
Use of the result is optional.
- OptionalEquality - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - OptionalEquality() - Constructor for class com.google.errorprone.bugpatterns.OptionalEquality
- OptionalMapToOptional - Class in com.google.errorprone.bugpatterns
-
Matches
Optional#map
mapping to anotherOptional
. - OptionalMapToOptional() - Constructor for class com.google.errorprone.bugpatterns.OptionalMapToOptional
- OptionalMapUnusedValue - Class in com.google.errorprone.bugpatterns
-
Replaces
Optional.map
withOptional.ifPresent
if the value is unused. - OptionalMapUnusedValue() - Constructor for class com.google.errorprone.bugpatterns.OptionalMapUnusedValue
- OptionalNotPresent - Class in com.google.errorprone.bugpatterns
- OptionalOfRedundantMethod - Class in com.google.errorprone.bugpatterns
-
Checks if
Optional#of
is chained with a redundant method. - OptionalOfRedundantMethod() - Constructor for class com.google.errorprone.bugpatterns.OptionalOfRedundantMethod
- or(AbstractMockChecker.TypeExtractor<T>) - Method in interface com.google.errorprone.bugpatterns.AbstractMockChecker.TypeExtractor
-
Enrich this TypeExtractor with fallback behavior.
- or(Choice<T>) - Method in class com.google.errorprone.refaster.Choice
-
Returns a choice of the options from this
Choice
or fromother
. - OR - Enum constant in enum com.google.errorprone.util.OperatorPrecedence
- OrganizedImports() - Constructor for class com.google.errorprone.apply.ImportOrganizer.OrganizedImports
- organizeImports(List<ImportOrganizer.Import>) - Method in class com.google.errorprone.apply.IdeaImportOrganizer
- organizeImports(List<ImportOrganizer.Import>) - Method in interface com.google.errorprone.apply.ImportOrganizer
-
Organize the imports supplied, e.g.
- OrphanedFormatString - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - OrphanedFormatString() - Constructor for class com.google.errorprone.bugpatterns.OrphanedFormatString
- OTHER - Enum constant in enum com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicyEvaluator.MethodInfo.MethodKind
-
Neither a method nor a constructor.
- outermostClass(Symbol) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns the outermost enclosing owning class, or
null
. - OutlineNone - Class in com.google.errorprone.bugpatterns
-
Check for the a11y antipattern of setting CSS outline attributes to none or 0.
- OutlineNone() - Constructor for class com.google.errorprone.bugpatterns.OutlineNone
- OverlappingQualifierAndScopeAnnotation - Class in com.google.errorprone.bugpatterns.inject
- OverlappingQualifierAndScopeAnnotation() - Constructor for class com.google.errorprone.bugpatterns.inject.OverlappingQualifierAndScopeAnnotation
- Overrides - Class in com.google.errorprone.bugpatterns
-
Matches the behaviour of javac's overrides Xlint warning.
- Overrides() - Constructor for class com.google.errorprone.bugpatterns.Overrides
- overrideSeverity(BugPattern.SeverityLevel) - Method in class com.google.errorprone.matchers.Description.Builder
- OverridesGuiceInjectableMethod - Class in com.google.errorprone.bugpatterns.inject.guice
-
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.Inject
- OverridesGuiceInjectableMethod() - Constructor for class com.google.errorprone.bugpatterns.inject.guice.OverridesGuiceInjectableMethod
- OverridesJavaxInjectableMethod - Class in com.google.errorprone.bugpatterns.inject.guice
-
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
- OverridesJavaxInjectableMethod() - Constructor for class com.google.errorprone.bugpatterns.inject.guice.OverridesJavaxInjectableMethod
- OverrideThrowableToString - Class in com.google.errorprone.bugpatterns
-
Warns against overriding toString() in a Throwable class and suggests getMessage()
- OverrideThrowableToString() - Constructor for class com.google.errorprone.bugpatterns.OverrideThrowableToString
- OverridingMethodInconsistentArgumentNamesChecker - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - OverridingMethodInconsistentArgumentNamesChecker() - Constructor for class com.google.errorprone.bugpatterns.OverridingMethodInconsistentArgumentNamesChecker
- OverridingMethodsMustInvokeSuper - Annotation Type in com.google.errorprone.annotations
-
Indicates that any concrete method that overrides the annotated method, directly or indirectly, must invoke
super.theAnnotatedMethod(...)
at some point. - owner() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.DefinedIn
- ownerType() - Method in class com.google.errorprone.matchers.method.ConstructorMatchState
-
The type of the class in which a member method or constructor is declared.
- ownerType() - Method in interface com.google.errorprone.matchers.method.MatchState
-
The type of the class in which a member method or constructor is declared.
P
- PACKAGE_PRIVATE - Enum constant in enum com.google.errorprone.util.Visibility
- PackageInfo - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - PackageInfo() - Constructor for class com.google.errorprone.bugpatterns.PackageInfo
- PackageLocation - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - PackageLocation() - Constructor for class com.google.errorprone.bugpatterns.PackageLocation
- packageMatches(Predicate<String>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node whose compilation unit's package name matches the given predicate.
- packageMatches(Pattern) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node whose compilation unit's package name matches the given pattern.
- PackagesRule - Class in com.google.errorprone.bugpatterns.checkreturnvalue
-
A rule that enables checking for methods belonging to a set of packages or any of their subpackages.
- packageStartsWith(String) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node whose compilation unit starts with this prefix.
- PARAMETER_COMMENT_PATTERN - Static variable in class com.google.errorprone.bugpatterns.argumentselectiondefects.NamedParameterComment
- PARAMETER_TYPES - Enum constant in enum com.google.errorprone.matchers.method.MethodInvocationMatcher.TokenType
- ParameterComment - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - ParameterComment() - Constructor for class com.google.errorprone.bugpatterns.ParameterComment
- ParameterMissingNullable - Class in com.google.errorprone.bugpatterns.nullness
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - ParameterName - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - ParametersButNotParameterized - Class in com.google.errorprone.bugpatterns
-
Flags uses of parameters in non-parameterized tests.
- ParametersButNotParameterized() - Constructor for class com.google.errorprone.bugpatterns.ParametersButNotParameterized
- parameterTypes() - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.Api
-
Returns the list of fully qualified parameter types for the given method/constructor.
- parameterTypes() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ParameterTypes
- ParameterTypes() - Constructor for class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ParameterTypes
- paramTypes() - Method in interface com.google.errorprone.matchers.method.MatchState
-
The method's formal parameter types.
- ParcelableCreator - Class in com.google.errorprone.bugpatterns.android
-
BugPattern to detect classes which implement android.os.Parcelable but don't have public static CREATOR.
- ParcelableCreator() - Constructor for class com.google.errorprone.bugpatterns.android.ParcelableCreator
- parentNode(Matcher<Tree>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node if its parent node is matched by the given matcher.
- parse(String) - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.Api
-
Parses an API string into an
Api
, ignoring trailing or inner whitespace between names. - parseDelimitedFrom(InputStream) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
- parseDelimitedFrom(InputStream) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
- parseDelimitedFrom(InputStream) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
- parseDelimitedFrom(InputStream) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
- parseDelimitedFrom(InputStream) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
- parseDelimitedFrom(InputStream, ExtensionRegistryLite) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
- parseDelimitedFrom(InputStream, ExtensionRegistryLite) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
- parseDelimitedFrom(InputStream, ExtensionRegistryLite) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
- parseDelimitedFrom(InputStream, ExtensionRegistryLite) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
- parseDelimitedFrom(InputStream, ExtensionRegistryLite) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
- parseFlag(String) - Method in class com.google.errorprone.ErrorProneFlags.Builder
-
Given a String custom flag in the format
"-XepOpt:FlagName=Value"
, places the flag in this builder's dictionary, e.g. - parseFrom(byte[]) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
- parseFrom(byte[]) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
- parseFrom(byte[]) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
- parseFrom(byte[]) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
- parseFrom(byte[]) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
- parseFrom(byte[], ExtensionRegistryLite) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
- parseFrom(byte[], ExtensionRegistryLite) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
- parseFrom(byte[], ExtensionRegistryLite) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
- parseFrom(byte[], ExtensionRegistryLite) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
- parseFrom(byte[], ExtensionRegistryLite) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
- parseFrom(ByteString) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
- parseFrom(ByteString) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
- parseFrom(ByteString) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
- parseFrom(ByteString) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
- parseFrom(ByteString) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
- parseFrom(ByteString, ExtensionRegistryLite) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
- parseFrom(ByteString, ExtensionRegistryLite) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
- parseFrom(ByteString, ExtensionRegistryLite) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
- parseFrom(ByteString, ExtensionRegistryLite) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
- parseFrom(ByteString, ExtensionRegistryLite) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
- parseFrom(CodedInputStream) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
- parseFrom(CodedInputStream) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
- parseFrom(CodedInputStream) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
- parseFrom(CodedInputStream) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
- parseFrom(CodedInputStream) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
- parseFrom(CodedInputStream, ExtensionRegistryLite) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
- parseFrom(CodedInputStream, ExtensionRegistryLite) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
- parseFrom(CodedInputStream, ExtensionRegistryLite) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
- parseFrom(CodedInputStream, ExtensionRegistryLite) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
- parseFrom(CodedInputStream, ExtensionRegistryLite) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
- parseFrom(InputStream) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
- parseFrom(InputStream) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
- parseFrom(InputStream) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
- parseFrom(InputStream) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
- parseFrom(InputStream) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
- parseFrom(InputStream, ExtensionRegistryLite) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
- parseFrom(InputStream, ExtensionRegistryLite) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
- parseFrom(InputStream, ExtensionRegistryLite) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
- parseFrom(InputStream, ExtensionRegistryLite) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
- parseFrom(InputStream, ExtensionRegistryLite) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
- parseFrom(ByteBuffer) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
- parseFrom(ByteBuffer) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
- parseFrom(ByteBuffer) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
- parseFrom(ByteBuffer) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
- parseFrom(ByteBuffer) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
- parseFrom(ByteBuffer, ExtensionRegistryLite) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
- parseFrom(ByteBuffer, ExtensionRegistryLite) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
- parseFrom(ByteBuffer, ExtensionRegistryLite) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
- parseFrom(ByteBuffer, ExtensionRegistryLite) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
- parseFrom(ByteBuffer, ExtensionRegistryLite) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
- parser() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
- parser() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
- parser() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
- parser() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
- parser() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
- patchFile(URI) - Method in class com.google.errorprone.apply.PatchFileDestination
- PatchFileDestination - Class in com.google.errorprone.apply
-
A
FileDestination
that writes a unix-patch file torootPath
containing the suggested changes. - PatchFileDestination(Path, Path) - Constructor for class com.google.errorprone.apply.PatchFileDestination
- patchingOptions() - Method in class com.google.errorprone.ErrorProneOptions
- path() - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Violation
-
The list of steps in the explanation.
- path() - Method in class com.google.errorprone.dataflow.AccessPath
- path() - Method in class com.google.errorprone.util.ASTHelpers.TargetType
- PatternMatchingInstanceof - Class in com.google.errorprone.bugpatterns
-
A BugPattern; see the summary.
- PatternMatchingInstanceof() - Constructor for class com.google.errorprone.bugpatterns.PatternMatchingInstanceof
- PERFORMANCE - Static variable in class com.google.errorprone.BugPattern.StandardTags
-
This check detects a potential performance issue, where an easily-identifiable replacement for the code being made will always result in a net positive performance improvement.
- PeriodFrom - Class in com.google.errorprone.bugpatterns.time
- PeriodFrom() - Constructor for class com.google.errorprone.bugpatterns.time.PeriodFrom
- PeriodGetTemporalUnit - Class in com.google.errorprone.bugpatterns.time
-
Bans calls to
Period.get(temporalUnit)
wheretemporalUnit
is notYEARS
,MONTHS
, orDAYS
. - PeriodGetTemporalUnit() - Constructor for class com.google.errorprone.bugpatterns.time.PeriodGetTemporalUnit
- PeriodTimeMath - Class in com.google.errorprone.bugpatterns.time
-
Bans calls to
Period#plus/minus(TemporalAmount)
where the argument is a Duration. - Placeholder - Annotation Type in com.google.errorprone.refaster.annotation
-
Annotation to indicate a placeholder method.
- plus(ErrorProneFlags) - Method in class com.google.errorprone.ErrorProneFlags
-
Returns a new ErrorProneFlags object with the values of two ErrorProneFlags objects added together.
- plus(ScannerSupplier) - Method in class com.google.errorprone.scanner.ScannerSupplier
- plus(String) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Violation
-
Adds a step.
- policy() - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule.Evaluation
-
The policy the rule selected.
- pos() - Method in class com.google.errorprone.util.ErrorProneToken
- position - Variable in class com.google.errorprone.fixes.AdjustedPosition
- position - Variable in class com.google.errorprone.matchers.Description
-
The position of the match.
- POSTFIX - Enum constant in enum com.google.errorprone.util.OperatorPrecedence
- postfixWith(Tree, String) - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
- postfixWith(Tree, String) - Static method in class com.google.errorprone.fixes.SuggestedFix
- POTENTIALLY_AMBIGUOUS - Static variable in class com.google.errorprone.util.ASTHelpers
- PreconditionsCheckNotNullRepeated - Class in com.google.errorprone.bugpatterns
-
Checks that Precondition.checkNotNull is not invoked with same arg twice.
- PreconditionsCheckNotNullRepeated() - Constructor for class com.google.errorprone.bugpatterns.PreconditionsCheckNotNullRepeated
- PreconditionsInvalidPlaceholder - Class in com.google.errorprone.bugpatterns
- PreconditionsInvalidPlaceholder() - Constructor for class com.google.errorprone.bugpatterns.PreconditionsInvalidPlaceholder
- PreferJavaTimeOverload - Class in com.google.errorprone.bugpatterns.time
-
This check suggests the use of
java.time
-based APIs, when available. - PreferJavaTimeOverload() - Constructor for class com.google.errorprone.bugpatterns.time.PreferJavaTimeOverload
- PreferredInterfaceType - Class in com.google.errorprone.bugpatterns
-
Tightens types which refer to an Iterable, Map, Multimap, etc.
- PreferredInterfaceType() - Constructor for class com.google.errorprone.bugpatterns.PreferredInterfaceType
- PREFIX - Static variable in class com.google.errorprone.ErrorProneFlags
- prefixWith(Tree, String) - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
- prefixWith(Tree, String) - Static method in class com.google.errorprone.fixes.SuggestedFix
- preRegisterFileManager(Context) - Static method in class com.google.errorprone.MaskedClassLoader
-
An alternative to
JavacFileManager.preRegister(Context)
that installs aMaskedClassLoader
. - pretty(Context, Writer) - Static method in class com.google.errorprone.refaster.Template
- prettyMethodSignature(Symbol.ClassSymbol, Symbol.MethodSymbol) - Static method in class com.google.errorprone.util.Signatures
-
Pretty-prints a method signature for use in diagnostics.
- prettyType(VisitorState, SuggestedFix.Builder, Type) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Pretty-prints a Type for use in fixes, qualifying any enclosed type names using
SuggestedFixes.qualifyType(com.google.errorprone.VisitorState, com.google.errorprone.fixes.SuggestedFix.Builder, com.sun.tools.javac.code.Symbol)
}. - prettyType(Type) - Static method in class com.google.errorprone.util.Signatures
-
Pretty-prints a Type for use in diagnostics, using simple names for class types
- prettyType(Type, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Pretty-prints a Type for use in diagnostic messages, qualifying any enclosed type names using
SuggestedFixes.qualifyType(com.google.errorprone.VisitorState, com.google.errorprone.fixes.SuggestedFix.Builder, com.sun.tools.javac.code.Symbol)
}. - previousStatement(Matcher<StatementTree>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches a statement AST node if the previous statement in the enclosing block matches the given matcher.
- PrimitiveArrayPassedToVarargsMethod - Class in com.google.errorprone.bugpatterns
- PrimitiveArrayPassedToVarargsMethod() - Constructor for class com.google.errorprone.bugpatterns.PrimitiveArrayPassedToVarargsMethod
- PrimitiveAtomicReference - Class in com.google.errorprone.bugpatterns
-
Discourages inadvertently using reference equality on boxed primitives in AtomicReference.
- PrimitiveAtomicReference() - Constructor for class com.google.errorprone.bugpatterns.PrimitiveAtomicReference
- PRIVATE - Enum constant in enum com.google.errorprone.annotations.Modifier
- PRIVATE - Enum constant in enum com.google.errorprone.matchers.MethodVisibility.Visibility
- PRIVATE - Enum constant in enum com.google.errorprone.util.Visibility
- PrivateConstructorForNoninstantiableModule - Class in com.google.errorprone.bugpatterns.inject.dagger
- PrivateConstructorForNoninstantiableModule() - Constructor for class com.google.errorprone.bugpatterns.inject.dagger.PrivateConstructorForNoninstantiableModule
- PrivateConstructorForUtilityClass - Class in com.google.errorprone.bugpatterns
- PrivateConstructorForUtilityClass() - Constructor for class com.google.errorprone.bugpatterns.PrivateConstructorForUtilityClass
- PrivateSecurityContractProtoAccess - Class in com.google.errorprone.bugpatterns
-
Check for disallowed access to private_do_not_access_or_else proto fields.
- PrivateSecurityContractProtoAccess() - Constructor for class com.google.errorprone.bugpatterns.PrivateSecurityContractProtoAccess
- process(Set<? extends TypeElement>, RoundEnvironment) - Method in class com.google.errorprone.DocGenProcessor
- process(Set<? extends TypeElement>, RoundEnvironment) - Method in class com.google.errorprone.refaster.annotation.RequiredAnnotationProcessor
- processArgs(Iterable<String>) - Static method in class com.google.errorprone.ErrorProneOptions
-
Given a list of command-line arguments, produce the corresponding
ErrorProneOptions
instance. - processArgs(String[]) - Static method in class com.google.errorprone.ErrorProneOptions
-
Given a list of command-line arguments, produce the corresponding
ErrorProneOptions
instance. - productionComponentBuilders() - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.DaggerRules
-
Returns a rule that handles
@dagger.producers.ProductionComponent.Builder
types, making their fluent setter methods' results ignorable. - productionSubcomponentBuilders() - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.DaggerRules
-
Returns a rule that handles
@dagger.producers.ProductionSubcomponent.Builder
types, making their fluent setter methods' results ignorable. - PROTECTED - Enum constant in enum com.google.errorprone.annotations.Modifier
- PROTECTED - Enum constant in enum com.google.errorprone.matchers.MethodVisibility.Visibility
- PROTECTED - Enum constant in enum com.google.errorprone.util.Visibility
- ProtectedMembersInFinalClass - Class in com.google.errorprone.bugpatterns
-
Flags protected members in final classes.
- ProtectedMembersInFinalClass() - Constructor for class com.google.errorprone.bugpatterns.ProtectedMembersInFinalClass
- ProtoBuilderReturnValueIgnored - Class in com.google.errorprone.bugpatterns
-
Highlights cases where a proto's build method has its return value ignored.
- protoBuilders() - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.ProtoRules
-
Returns a rule that handles proto builders, making their fluent setter methods' results ignorable.
- ProtocolBufferOrdinal - Class in com.google.errorprone.bugpatterns
-
Points out if #ordinal() is called on a Protocol Buffer Enum.
- ProtocolBufferOrdinal() - Constructor for class com.google.errorprone.bugpatterns.ProtocolBufferOrdinal
- ProtoDurationGetSecondsGetNano - Class in com.google.errorprone.bugpatterns.time
-
This checker warns about accessing the underlying nanosecond-adjustment field of a duration without a "nearby" access of the underlying seconds field.
- ProtoDurationGetSecondsGetNano() - Constructor for class com.google.errorprone.bugpatterns.time.ProtoDurationGetSecondsGetNano
- ProtoRules - Class in com.google.errorprone.bugpatterns.checkreturnvalue
-
Rules for methods on proto messages and builders.
- ProtoStringFieldReferenceEquality - Class in com.google.errorprone.bugpatterns
- ProtoStringFieldReferenceEquality() - Constructor for class com.google.errorprone.bugpatterns.ProtoStringFieldReferenceEquality
- ProtoTimestampGetSecondsGetNano - Class in com.google.errorprone.bugpatterns.time
-
This checker warns about accessing the underlying nanosecond-adjustment field of a protobuf timestamp without a "nearby" access of the underlying seconds field.
- ProtoTimestampGetSecondsGetNano() - Constructor for class com.google.errorprone.bugpatterns.time.ProtoTimestampGetSecondsGetNano
- ProtoTruthMixedDescriptors - Class in com.google.errorprone.bugpatterns
-
Checks that
ProtoTruth
'signoringFields
is passed field numbers from the correct proto. - ProtoTruthMixedDescriptors() - Constructor for class com.google.errorprone.bugpatterns.ProtoTruthMixedDescriptors
- provideFix(ReturnTree) - Method in class com.google.errorprone.bugpatterns.AsyncCallableReturnsNull
- provideFix(ReturnTree) - Method in class com.google.errorprone.bugpatterns.AsyncFunctionReturnsNull
- provideFix(ReturnTree) - Method in class com.google.errorprone.bugpatterns.ReturnsNullCollection
- ProvidesMethodOutsideOfModule - Class in com.google.errorprone.bugpatterns.inject.guice
- ProvidesMethodOutsideOfModule() - Constructor for class com.google.errorprone.bugpatterns.inject.guice.ProvidesMethodOutsideOfModule
- ProvidesNull - Class in com.google.errorprone.bugpatterns.inject.dagger
-
Bug checker for null-returning methods annotated with
@Provides
but not@Nullable
. - ProvidesNull() - Constructor for class com.google.errorprone.bugpatterns.inject.dagger.ProvidesNull
- ProvisionException(String) - Constructor for exception class com.google.errorprone.scanner.ErrorProneInjector.ProvisionException
- ProvisionException(String, Throwable) - Constructor for exception class com.google.errorprone.scanner.ErrorProneInjector.ProvisionException
- PUBLIC - Enum constant in enum com.google.errorprone.annotations.Modifier
- PUBLIC - Enum constant in enum com.google.errorprone.matchers.MethodVisibility.Visibility
- PUBLIC - Enum constant in enum com.google.errorprone.util.Visibility
- PublicApiNamedStreamShouldReturnStream - Class in com.google.errorprone.bugpatterns
-
Checks if public APIs named "stream" returns a type whose name ends with Stream.
- PublicApiNamedStreamShouldReturnStream() - Constructor for class com.google.errorprone.bugpatterns.PublicApiNamedStreamShouldReturnStream
- PURE_METHOD - Enum constant in enum com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions.ConstantExpression.ConstantExpressionKind
- pureMethod() - Method in class com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions.ConstantExpression
- PureMethodInvocation() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions.PureMethodInvocation
- put(Diff) - Method in class com.google.errorprone.apply.DiffApplier
- put(Bindings.Key<?>, Object) - Method in class com.google.errorprone.refaster.Bindings
- putAll(Map<? extends Bindings.Key<?>, ? extends Object>) - Method in class com.google.errorprone.refaster.Bindings
- putBinding(Bindings.Key<V>, V) - Method in class com.google.errorprone.refaster.Bindings
- putBinding(Bindings.Key<V>, V) - Method in class com.google.errorprone.refaster.Unifier
- putFlag(String, String) - Method in class com.google.errorprone.ErrorProneFlags.Builder
-
Puts a key-value pair directly in this builder's dictionary.
Q
- qualifiedTemplateClass() - Method in class com.google.errorprone.refaster.RefasterRule
- QualifierOrScopeOnInjectMethod - Class in com.google.errorprone.bugpatterns.inject
- QualifierOrScopeOnInjectMethod() - Constructor for class com.google.errorprone.bugpatterns.inject.QualifierOrScopeOnInjectMethod
- QualifierWithTypeUse - Class in com.google.errorprone.bugpatterns.inject
- QualifierWithTypeUse() - Constructor for class com.google.errorprone.bugpatterns.inject.QualifierWithTypeUse
- qualifyDocReference(SuggestedFix.Builder, DocTreePath, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Fully qualifies a javadoc reference, e.g.
- qualifyStaticImport(String, SuggestedFix.Builder, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Provides a name to use for the (fully qualified) method provided in
qualifiedName
, trying to static import it if possible. - qualifyType(VisitorState, SuggestedFix.Builder, Symbol) - Static method in class com.google.errorprone.bugpatterns.SameNameButDifferent
-
Try to qualify the type, or return the full name.
- qualifyType(VisitorState, SuggestedFix.Builder, Symbol) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Returns a human-friendly name of the given
Symbol
for use in fixes. - qualifyType(VisitorState, SuggestedFix.Builder, String) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Returns a human-friendly name of the given
typeName
for use in fixes. - qualifyType(VisitorState, SuggestedFix.Builder, TypeMirror) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Returns a human-friendly name of the given type for use in fixes.
- QUEUE - Enum constant in enum com.google.errorprone.bugpatterns.TypesWithUndefinedEquality
R
- radix() - Method in class com.google.errorprone.util.ErrorProneToken
- RandomCast - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - RandomCast() - Constructor for class com.google.errorprone.bugpatterns.RandomCast
- RandomModInteger - Class in com.google.errorprone.bugpatterns
- RandomModInteger() - Constructor for class com.google.errorprone.bugpatterns.RandomModInteger
- range() - Method in class com.google.errorprone.fixes.Replacement
-
The
Range
to be replaced. - Reachability - Class in com.google.errorprone.util
-
An implementation of JLS 14.21 reachability.
- Reachability() - Constructor for class com.google.errorprone.util.Reachability
- ReachabilityFenceUsage - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - ReachabilityFenceUsage() - Constructor for class com.google.errorprone.bugpatterns.ReachabilityFenceUsage
- readFile(String) - Method in interface com.google.errorprone.apply.FileSource
- readFile(String) - Method in class com.google.errorprone.apply.FsFileSource
- reason() - Method in class com.google.errorprone.bugpatterns.AbstractMockChecker.Reason
-
The reason this class should not be mocked, which may be as simple as "it is annotated to forbid mocking" but may also provide a suggested workaround.
- Reason() - Constructor for class com.google.errorprone.bugpatterns.AbstractMockChecker.Reason
- receiver() - Method in class com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions.PureMethodInvocation
- RECEIVER_SUPERTYPE - Enum constant in enum com.google.errorprone.matchers.method.MethodInvocationMatcher.TokenType
- RECEIVER_TYPE - Enum constant in enum com.google.errorprone.matchers.method.MethodInvocationMatcher.TokenType
- receiverInstance() - Static method in class com.google.errorprone.suppliers.Suppliers
-
Supplies the expression which gives the instance of an object that will receive the method call.
- receiverOfInvocation(Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
- receiverSameAsArgument(int) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches when the receiver of an instance method is the same reference as a particular argument to the method.
- receiverSupertype() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ReceiverSupertype
- ReceiverSupertype() - Constructor for class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ReceiverSupertype
- receiverType() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ReceiverType
- receiverType() - Static method in class com.google.errorprone.suppliers.Suppliers
-
Supplies the expression which gives the instance of an object that will receive the method call.
- ReceiverType() - Constructor for class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ReceiverType
- RectIntersectReturnValueIgnored - Class in com.google.errorprone.bugpatterns.android
- RedundantOverride - Class in com.google.errorprone.bugpatterns
-
Removes overrides which purely pass through to the method in the super class.
- RedundantOverride() - Constructor for class com.google.errorprone.bugpatterns.RedundantOverride
- RedundantSetterCall - Class in com.google.errorprone.bugpatterns
-
A BugPattern; see the summary.
- RedundantThrows - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - RedundantThrows() - Constructor for class com.google.errorprone.bugpatterns.RedundantThrows
- REFACTORING - Static variable in class com.google.errorprone.BugPattern.StandardTags
-
This check performs a refactoring, for example migrating to a new version of an API.
- RefactoringCollection - Class in com.google.errorprone
-
A container of fixes that have been collected during a single compilation phase.
- RefactoringTask(Context, RefactoringCollection) - Constructor for class com.google.errorprone.ErrorProneAnalyzer.RefactoringTask
- Refaster - Class in com.google.errorprone.refaster
-
Static utilities to indicate special handling in Refaster templates.
- RefasterRule<M,
T> - Class in com.google.errorprone.refaster -
A representation of an entire Refaster rule, corresponding to a class with @BeforeTemplates and @AfterTemplates.
- RefasterRuleBuilderScanner - Class in com.google.errorprone.refaster
-
Scanner implementation to extract a single Refaster rule from a
ClassTree
. - RefasterRuleCompiler - Class in com.google.errorprone.refaster
-
A javac plugin that compiles Refaster rules to a
.analyzer
file. - RefasterRuleCompiler() - Constructor for class com.google.errorprone.refaster.RefasterRuleCompiler
- RefasterRuleCompilerAnalyzer - Class in com.google.errorprone.refaster
-
TaskListener that receives compilation of a Refaster rule class and outputs a serialized analyzer to the specified path.
- ReferenceEquality - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - ReferenceEquality() - Constructor for class com.google.errorprone.bugpatterns.ReferenceEquality
- referencesOuter(Tree, Symbol, VisitorState) - Static method in class com.google.errorprone.bugpatterns.CanBeStaticAnalyzer
-
Returns true if the tree references its enclosing class.
- RefersToDaggerCodegen - Class in com.google.errorprone.bugpatterns.inject.dagger
-
Checks that the only code that refers to Dagger generated code is other Dagger generated code.
- RefersToDaggerCodegen() - Constructor for class com.google.errorprone.bugpatterns.inject.dagger.RefersToDaggerCodegen
- Regexes - Class in com.google.errorprone.util
-
Utilities for checks that work with regexes.
- registerAllExtensions(ExtensionRegistry) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto
- registerAllExtensions(ExtensionRegistryLite) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto
- REJECT - Enum constant in enum com.google.errorprone.fixes.Replacements.CoalescePolicy
-
Reject overlapping insertions and throw an
IllegalArgumentException
. - RELATIONAL - Enum constant in enum com.google.errorprone.util.OperatorPrecedence
- remove(String) - Method in class com.google.errorprone.apply.ImportStatements
-
Remove an import from the list of imports.
- removeAll(Collection<String>) - Method in class com.google.errorprone.apply.ImportStatements
-
Removes all imports in a collection to this list of imports.
- removeClassDiff(int) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
- removeElement(Tree, List<? extends Tree>, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Removes
tree
fromtrees
, assuming thattrees
represents a comma-separated list of expressions containingtree
. - removeImport(String) - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
-
Remove an import statement as part of this SuggestedFix.
- removeMember(int) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
- removeModifiers(ModifiersTree, VisitorState, Set<Modifier>) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Removes modifiers to the given declaration and corresponding modifiers tree.
- removeModifiers(Tree, VisitorState, Modifier...) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Removes modifiers from the given class, method, or field declaration.
- removeStaticImport(String) - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
-
Remove a static import statement as part of this SuggestedFix.
- removeSuppressWarnings(SuggestedFix.Builder, VisitorState, String) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Modifies
fixBuilder
to either remove awarningToRemove
warning from the closestSuppressWarning
node or remove the entireSuppressWarning
node ifwarningToRemove
is the only warning in that node. - RemoveUnusedImports - Class in com.google.errorprone.bugpatterns
- RemoveUnusedImports() - Constructor for class com.google.errorprone.bugpatterns.RemoveUnusedImports
- renameMethod(MethodTree, String, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Be warned, only changes method name at the declaration.
- renameMethodInvocation(MethodInvocationTree, String, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Replaces the name of the method being invoked in
tree
withreplacement
. - renameMethodWithInvocations(MethodTree, String, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Renames the given
MethodTree
and its usages in the current compilation unit toreplacement
. - renameTypeParameter(TypeParameterTree, Tree, String, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Renames a type parameter
typeParameter
owned byowningTree
totypeVarReplacement
. - renameVariable(VariableTree, String, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Renames the given
VariableTree
and its usages in the current compilation unit toreplacement
. - renameVariableUsages(VariableTree, String, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Renames usage of the given
VariableTree
in the current compilation unit toreplacement
. - Repeated - Annotation Type in com.google.errorprone.refaster.annotation
-
An annotation for repeated Refaster template variables.
- replace(int, int, String) - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
-
Replace the characters from startPos, inclusive, until endPos, exclusive, with the given string.
- replace(int, int, String) - Static method in class com.google.errorprone.fixes.SuggestedFix
-
Replace the characters from startPos, inclusive, until endPos, exclusive, with the given string.
- replace(BlockTemplateMatch) - Method in class com.google.errorprone.refaster.BlockTemplate
- replace(ExpressionTemplateMatch) - Method in class com.google.errorprone.refaster.ExpressionTemplate
-
Generates a
SuggestedFix
replacing the specified match (usually of another template) with this template. - replace(Tree, String) - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
- replace(Tree, String) - Static method in class com.google.errorprone.fixes.SuggestedFix
- replace(Tree, String, int, int) - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
-
Replace a tree node with a string, but adjust the start and end positions as well.
- replace(Tree, String, int, int) - Static method in class com.google.errorprone.fixes.SuggestedFix
-
Replace a tree node with a string, but adjust the start and end positions as well.
- replace(M) - Method in class com.google.errorprone.refaster.Template
- replaceBinding(Bindings.Key<V>, V) - Method in class com.google.errorprone.refaster.Unifier
- replaceChars(int, int, String) - Method in class com.google.errorprone.apply.SourceFile
-
Replace the source code between the start and end character positions with a new string.
- replaceDocTree(SuggestedFix.Builder, DocTreePath, String) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Replaces the leaf doctree in the given path with
replacement
. - replaceIncludingComments(TreePath, String, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Replaces the tree at
path
along with any Javadocs/associated single-line comments. - replaceLines(int, int, List<String>) - Method in class com.google.errorprone.apply.SourceFile
-
Replace the source code between the start and end lines with some new lines of code.
- replaceLines(List<String>) - Method in class com.google.errorprone.apply.SourceFile
-
Replace the source code with the new lines of code.
- replacement() - Element in annotation type com.google.errorprone.annotations.InlineMe
-
What the caller should be replaced with.
- Replacement - Class in com.google.errorprone.fixes
-
A replaced section of a source file.
- Replacement() - Constructor for class com.google.errorprone.fixes.Replacement
- REPLACEMENT_FIRST - Enum constant in enum com.google.errorprone.fixes.Replacements.CoalescePolicy
-
Accept overlapping insertions, with the new insertion before the existing one.
- Replacements - Class in com.google.errorprone.fixes
-
A collection of
Replacement
s to be made to a source file. - Replacements() - Constructor for class com.google.errorprone.fixes.Replacements
- Replacements.CoalescePolicy - Enum in com.google.errorprone.fixes
-
A policy for handling overlapping insertions.
- ReplacementVariableFinder - Class in com.google.errorprone.bugpatterns
-
Utility methods to find replacement variables with similar names.
- replaceWith() - Method in class com.google.errorprone.fixes.Replacement
-
The source text to appear in the output.
- report(Tree, ThreadSafety.Violation, Optional<SuggestedFix>) - Method in interface com.google.errorprone.bugpatterns.threadsafety.ImmutableAnalysis.ViolationReporter
- reportMatch(Description) - Method in class com.google.errorprone.VisitorState
- reportMatch(Description, VisitorState) - Method in class com.google.errorprone.scanner.Scanner
- REQUIRE_BLOCK_KEY - Static variable in class com.google.errorprone.refaster.UTemplater
-
Context key to indicate that templates should be treated as BlockTemplates, regardless of their structure.
- required() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Rule
- RequiredAnnotation - Annotation Type in com.google.errorprone.refaster.annotation
-
Indicates that an annotation requires the presence of another annotation.
- RequiredAnnotationProcessor - Class in com.google.errorprone.refaster.annotation
-
Enforces
@RequiredAnnotation
as an annotation processor. - RequiredAnnotationProcessor() - Constructor for class com.google.errorprone.refaster.annotation.RequiredAnnotationProcessor
- requiredFalse() - Method in class com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions.Truthiness
- RequiredModifiers - Annotation Type in com.google.errorprone.annotations
-
Annotation declaring that the target annotation requires all the specified modifiers.
- RequiredModifiersChecker - Class in com.google.errorprone.bugpatterns
- RequiredModifiersChecker() - Constructor for class com.google.errorprone.bugpatterns.RequiredModifiersChecker
- requiredTrue() - Method in class com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions.Truthiness
- requiresParentheses(ExpressionTree, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
-
Checks whether an expression requires parentheses.
- resolveClass(CharSequence) - Method in class com.google.errorprone.refaster.Inliner
- resolveEnclosingClass(ExpressionTree) - Method in interface com.google.errorprone.bugpatterns.threadsafety.GuardedByBinder.Resolver
- resolveEnclosingClass(ExpressionTree) - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedBySymbolResolver
- resolveExistingMethod(VisitorState, Symbol.TypeSymbol, Name, Iterable<Type>, Iterable<Type>) - Static method in class com.google.errorprone.util.ASTHelpers
-
Given a Type (
base
), find the method namedname
, with the appropriateargTypes
andtyargTypes
and return its MethodSymbol. - resolveIdentifier(IdentifierTree) - Method in interface com.google.errorprone.bugpatterns.threadsafety.GuardedByBinder.Resolver
- resolveIdentifier(IdentifierTree) - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedBySymbolResolver
- resolveMemberReference(GuardedByExpression, MemberReferenceTree) - Method in interface com.google.errorprone.bugpatterns.threadsafety.GuardedByBinder.Resolver
- resolveMemberReference(GuardedByExpression, MemberReferenceTree) - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedBySymbolResolver
- resolveMethod(MethodInvocationTree, GuardedByExpression, Name) - Method in interface com.google.errorprone.bugpatterns.threadsafety.GuardedByBinder.Resolver
- resolveMethod(MethodInvocationTree, GuardedByExpression, Name) - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedBySymbolResolver
- resolveMethod(MethodInvocationTree, Name) - Method in interface com.google.errorprone.bugpatterns.threadsafety.GuardedByBinder.Resolver
- resolveMethod(MethodInvocationTree, Name) - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedBySymbolResolver
- resolveSelect(GuardedByExpression, MemberSelectTree) - Method in interface com.google.errorprone.bugpatterns.threadsafety.GuardedByBinder.Resolver
- resolveSelect(GuardedByExpression, MemberSelectTree) - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedBySymbolResolver
- resolveTypeLiteral(ExpressionTree) - Method in interface com.google.errorprone.bugpatterns.threadsafety.GuardedByBinder.Resolver
- resolveTypeLiteral(ExpressionTree) - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedBySymbolResolver
- RestrictedApi - Annotation Type in com.google.errorprone.annotations
-
Restrict this method to callsites with a allowlist annotation.
- RestrictedApiChecker - Class in com.google.errorprone.bugpatterns
-
Check for non-allowlisted callers to RestrictedApiChecker.
- RestrictedApiChecker() - Constructor for class com.google.errorprone.bugpatterns.RestrictedApiChecker
- Result() - Constructor for class com.google.errorprone.fixes.SuggestedFixes.FixCompiler.Result
- ResultUsePolicy - Enum in com.google.errorprone.bugpatterns.checkreturnvalue
-
Policy for use of a method or constructor's result.
- ResultUsePolicyAnalyzer<E,
C> - Interface in com.google.errorprone.bugpatterns.checkreturnvalue -
An object that can report on the behavior of a CRV-related check for analysis purposes.
- ResultUsePolicyEvaluator<C,
S, - Class in com.google.errorprone.bugpatterns.checkreturnvalueM> -
Evaluates methods and their enclosing classes and packages to determine a
ResultUsePolicy
for the methods. - ResultUsePolicyEvaluator.Builder<C,
S, - Class in com.google.errorprone.bugpatterns.checkreturnvalueM> -
Builder for
ResultUsePolicyEvaluator
. - ResultUsePolicyEvaluator.MethodInfo<C,
S, - Interface in com.google.errorprone.bugpatterns.checkreturnvalueM> -
Delegate to return information about a method symbol.
- ResultUsePolicyEvaluator.MethodInfo.MethodKind - Enum in com.google.errorprone.bugpatterns.checkreturnvalue
-
What kind a method symbol is, and what scopes apply to it.
- ResultUseRule<C,
S> - Class in com.google.errorprone.bugpatterns.checkreturnvalue -
A rule for determining
ResultUsePolicy
for methods and/or constructors. - ResultUseRule() - Constructor for class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule
- ResultUseRule.Evaluation<S> - Class in com.google.errorprone.bugpatterns.checkreturnvalue
-
An evaluation that a rule makes.
- ResultUseRule.GlobalRule<C,
S> - Class in com.google.errorprone.bugpatterns.checkreturnvalue -
A global rule that is evaluated when none of the more specific rules determine a
ResultUsePolicy
for a method. - ResultUseRule.MethodRule<C,
S, - Class in com.google.errorprone.bugpatterns.checkreturnvalueM> -
A rule that evaluates methods and constructors to determine a
ResultUsePolicy
for them. - ResultUseRule.RuleScope - Enum in com.google.errorprone.bugpatterns.checkreturnvalue
-
Scope to which a rule may apply.
- ResultUseRule.SymbolRule<C,
S> - Class in com.google.errorprone.bugpatterns.checkreturnvalue -
A rule that evaluates symbols of any kind to determine a
ResultUsePolicy
to associate with them. - RethrowReflectiveOperationExceptionAsLinkageError - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - RethrowReflectiveOperationExceptionAsLinkageError() - Constructor for class com.google.errorprone.bugpatterns.RethrowReflectiveOperationExceptionAsLinkageError
- ReturnAtTheEndOfVoidFunction - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - ReturnAtTheEndOfVoidFunction() - Constructor for class com.google.errorprone.bugpatterns.ReturnAtTheEndOfVoidFunction
- ReturnFromVoid - Class in com.google.errorprone.bugpatterns.javadoc
-
Finds common Javadoc errors, and tries to suggest useful fixes.
- ReturnFromVoid() - Constructor for class com.google.errorprone.bugpatterns.javadoc.ReturnFromVoid
- ReturnMissingNullable - Class in com.google.errorprone.bugpatterns.nullness
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - Returns - Class in com.google.errorprone.matchers
-
Matches a
return
statement whose returned expression is matched by the given matcher. - Returns(Matcher<? super ExpressionTree>) - Constructor for class com.google.errorprone.matchers.Returns
-
New matcher for a
return
statement where the returned expression is matched by the passedreturnedMatcher
. - RETURNS_JAVA_LANG_VOID - Enum constant in enum com.google.errorprone.matchers.UnusedReturnValueMatcher.AllowReason
-
The method returns
java.lang.Void
at this use-site. - ReturnsNullCollection - Class in com.google.errorprone.bugpatterns
-
Flags methods with collection return types which return
null
in some cases but don't annotate the method as @Nullable. - ReturnsNullCollection() - Constructor for class com.google.errorprone.bugpatterns.ReturnsNullCollection
- returnStatement(Matcher<? super ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches a
return
statement where the returned expression is matched by the passedreturnedMatcher
. - ReturnValueIgnored - Class in com.google.errorprone.bugpatterns
-
A checker which produces an error when a return value is accidentally discarded.
- reverify(Unifier) - Method in class com.google.errorprone.refaster.UPlaceholderExpression
- rewriteTo(String) - Method in class com.google.errorprone.bugpatterns.DuplicateDateFormatField
- rhs() - Method in class com.google.errorprone.bugpatterns.TypeCompatibility.TypeCompatibilityReport
- RobolectricShadowDirectlyOn - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the summary. - RobolectricShadowDirectlyOn() - Constructor for class com.google.errorprone.bugpatterns.RobolectricShadowDirectlyOn
- root() - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.Select
-
Finds this
GuardedByExpression.Select
's nearest non-Select ancestor. - rule() - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule.Evaluation
-
The rule that made this evaluation.
- Rule() - Constructor for class com.google.errorprone.matchers.method.MethodInvocationMatcher.Rule
- Rules - Class in com.google.errorprone.bugpatterns.checkreturnvalue
-
Factories for common kinds of
ResultUseRule
s. - run(InputStream, OutputStream, OutputStream, String...) - Method in class com.google.errorprone.BaseErrorProneJavaCompiler
- RxReturnValueIgnored - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
for details.
S
- sameArgument(int, int) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches a
MethodInvocation
when the arguments at the two given indices are both the same variable, as determined byASTHelpers.sameVariable(com.sun.source.tree.ExpressionTree, com.sun.source.tree.ExpressionTree)
. - SameNameButDifferent - Class in com.google.errorprone.bugpatterns
-
Looks for types being shadowed by other types in a way that may be confusing.
- sameVariable(ExpressionTree) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches if this ExpressionTree refers to the same variable as the one passed into the matcher.
- sameVariable(ExpressionTree, ExpressionTree) - Static method in class com.google.errorprone.util.ASTHelpers
-
Determines whether two expressions refer to the same variable.
- scan(Tree, VisitorState) - Method in class com.google.errorprone.scanner.Scanner
-
Scan a single node.
- scan(Tree, P) - Method in class com.google.errorprone.bugpatterns.BugChecker.SuppressibleTreePathScanner
- scan(TreePath, VisitorState) - Method in class com.google.errorprone.scanner.Scanner
-
Scan a tree from a position identified by a TreePath.
- scan(TreePath, P) - Method in class com.google.errorprone.bugpatterns.BugChecker.SuppressibleTreePathScanner
- scanEntireMethodFor(Matcher<? super ExpressionTree>, MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractMustBeClosedChecker
-
Scans a method body for invocations matching
matcher
, emitting them as a single fix. - Scanner - Class in com.google.errorprone.scanner
-
TODO(eaftan): I'm worried about this performance of this code, specifically the part that handles SuppressWarnings.
- Scanner() - Constructor for class com.google.errorprone.scanner.Scanner
- ScannerSupplier - Class in com.google.errorprone.scanner
-
Supplies
Scanner
s and provides access to the backing sets of allBugChecker
s and enabledBugChecker
s. - ScannerSupplier() - Constructor for class com.google.errorprone.scanner.ScannerSupplier
- scanResources(TryTree) - Method in class com.google.errorprone.util.ASTHelpers.ScanThrownTypes
- ScanThrownTypes(VisitorState) - Constructor for class com.google.errorprone.util.ASTHelpers.ScanThrownTypes
- scope() - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule.Evaluation
-
The scope at which the evaluation was made.
- scope(Scope) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns a compatibility adapter around
Scope
. - ScopeAnnotationOnInterfaceOrAbstractClass - Class in com.google.errorprone.bugpatterns.inject
- ScopeAnnotationOnInterfaceOrAbstractClass() - Constructor for class com.google.errorprone.bugpatterns.inject.ScopeAnnotationOnInterfaceOrAbstractClass
- scopeMembers(ResultUseRule.RuleScope, M, C) - Method in interface com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicyEvaluator.MethodInfo
-
Returns an ordered stream of elements in this scope relative to the given
method
. - ScopeOnModule - Class in com.google.errorprone.bugpatterns.inject.dagger
-
Migrate users who use JSR 330 scopes on Dagger modules.
- ScopeOnModule() - Constructor for class com.google.errorprone.bugpatterns.inject.dagger.ScopeOnModule
- scopes() - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule.GlobalRule
- scopes() - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule.MethodRule
- scopes() - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule
-
The scopes this rule applies to.
- scopes() - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule.SymbolRule
- scopes(M) - Method in interface com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicyEvaluator.MethodInfo
-
Returns the scopes that apply for the given method.
- SECOND - Enum constant in enum com.google.errorprone.BugCheckerRefactoringTestHelper.FixChoosers
- Select() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.Select
- SELECT - Enum constant in enum com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.Kind
- SelfAlwaysReturnsThis - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - SelfAlwaysReturnsThis() - Constructor for class com.google.errorprone.bugpatterns.SelfAlwaysReturnsThis
- SelfAssertion - Class in com.google.errorprone.bugpatterns
-
A
BugPattern
; see the summary. - SelfAssignment - Class in com.google.errorprone.bugpatterns
-
TODO(eaftan): Consider cases where the parent is not a statement or there is no parent?
- SelfAssignment() - Constructor for class com.google.errorprone.bugpatterns.SelfAssignment
- SelfComparison - Class in com.google.errorprone.bugpatterns
-
Points out if an object is compared to itself.
- SelfComparison() - Constructor for class com.google.errorprone.bugpatterns.SelfComparison
- SelfEquals - Class in com.google.errorprone.bugpatterns
- SelfEquals() - Constructor for class com.google.errorprone.bugpatterns.SelfEquals
- SerializableReads - Class in com.google.errorprone.bugpatterns
-
List of banned methods for
BanSerializableRead
. - SERIALIZATION_METHODS - Static variable in class com.google.errorprone.matchers.Matchers
-
Method signature of serialization methods.
- setArgs(ImmutableList<String>) - Method in class com.google.errorprone.BugCheckerRefactoringTestHelper
- setArgs(String...) - Method in class com.google.errorprone.BugCheckerRefactoringTestHelper
- setArgs(String...) - Method in class com.google.errorprone.CompilationTestHelper
-
Sets custom command-line arguments for the compilation.
- setArgs(List<String>) - Method in class com.google.errorprone.CompilationTestHelper
-
Sets custom command-line arguments for the compilation.
- setClassDiff(int, ApiDiffProto.ClassDiff) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
- setClassDiff(int, ApiDiffProto.ClassDiff.Builder) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
- setClassName(String) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
-
string class_name = 1;
- setClassName(String) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
-
string class_name = 1;
- setClassNameBytes(ByteString) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
-
string class_name = 1;
- setClassNameBytes(ByteString) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
-
string class_name = 1;
- setCoalescePolicy(Replacements.CoalescePolicy) - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
- setEverythingDiff(ApiDiffProto.EverythingDiff) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
-
.devtools.staticanalysis.errorprone.apidiff.EverythingDiff everything_diff = 1;
- setEverythingDiff(ApiDiffProto.EverythingDiff.Builder) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
-
.devtools.staticanalysis.errorprone.apidiff.EverythingDiff everything_diff = 1;
- setFactoryMatcher(Matcher<ExpressionTree>) - Method in class com.google.errorprone.bugpatterns.StronglyType.Builder
-
Set the matcher used to check if an expression is a factory creating a stronger type.
- setField(Descriptors.FieldDescriptor, Object) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
- setField(Descriptors.FieldDescriptor, Object) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
- setField(Descriptors.FieldDescriptor, Object) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
- setField(Descriptors.FieldDescriptor, Object) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
- setField(Descriptors.FieldDescriptor, Object) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
- setFixChooser(BugCheckerRefactoringTestHelper.FixChooser) - Method in class com.google.errorprone.BugCheckerRefactoringTestHelper
- setIdentifier(String) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
-
string identifier = 1;
- setIdentifierBytes(ByteString) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
-
string identifier = 1;
- setImportOrder(String) - Method in class com.google.errorprone.BugCheckerRefactoringTestHelper
- setInformation(AccessPath, V) - Method in class com.google.errorprone.dataflow.AccessPathStore.Builder
- setLinkUrl(String) - Method in class com.google.errorprone.matchers.Description.Builder
-
Set a custom link URL.
- setLowerBound(UType) - Method in class com.google.errorprone.refaster.UTypeVar
- setMember(int, ApiDiffProto.ClassMember) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
- setMember(int, ApiDiffProto.ClassMember.Builder) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
-
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
- setMemberDescriptor(String) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
-
a JVMS 4.3 member descriptor
- setMemberDescriptorBytes(ByteString) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
-
a JVMS 4.3 member descriptor
- setMemberDiff(ApiDiffProto.MemberDiff) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
-
.devtools.staticanalysis.errorprone.apidiff.MemberDiff member_diff = 2;
- setMemberDiff(ApiDiffProto.MemberDiff.Builder) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
-
.devtools.staticanalysis.errorprone.apidiff.MemberDiff member_diff = 2;
- setMessage(String) - Method in class com.google.errorprone.matchers.Description.Builder
-
Set a custom error message for this
Description
. - setPurpose(ThreadSafety.Purpose) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Builder
-
See
ThreadSafety.Purpose
. - setRenameFunction(Function<String, String>) - Method in class com.google.errorprone.bugpatterns.StronglyType.Builder
-
Set a mapping function that maps from the original name to a new name more befitting the strong type.
- setRepeatedField(Descriptors.FieldDescriptor, int, Object) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
- setRepeatedField(Descriptors.FieldDescriptor, int, Object) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
- setRepeatedField(Descriptors.FieldDescriptor, int, Object) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
- setRepeatedField(Descriptors.FieldDescriptor, int, Object) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
- setRepeatedField(Descriptors.FieldDescriptor, int, Object) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
- setShortDescription(String) - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
-
Sets a custom short description for this fix.
- setSourceText(CharSequence) - Method in class com.google.errorprone.apply.SourceFile
-
Clears the current source test for this SourceFile and resets it to the passed-in value.
- setUnknownFields(UnknownFieldSet) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
- setUnknownFields(UnknownFieldSet) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
- setUnknownFields(UnknownFieldSet) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
- setUnknownFields(UnknownFieldSet) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
- setUnknownFields(UnknownFieldSet) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
- SetUnrecognized - Class in com.google.errorprone.bugpatterns
-
A BugPattern; see the summary.
- SetUnrecognized() - Constructor for class com.google.errorprone.bugpatterns.SetUnrecognized
- setupMessageBundle(Context) - Static method in class com.google.errorprone.BaseErrorProneJavaCompiler
-
Registers our message bundle.
- setUpperBound(UType) - Method in class com.google.errorprone.refaster.UTypeVar
- severities() - Method in class com.google.errorprone.scanner.ScannerSupplier
- severity - Variable in class com.google.errorprone.BugPatternInstance
- severity() - Element in annotation type com.google.errorprone.BugPattern
- severity() - Method in class com.google.errorprone.matchers.Description
- severity(Map<String, BugPattern.SeverityLevel>) - Method in class com.google.errorprone.BugCheckerInfo
- severityMap() - Method in class com.google.errorprone.scanner.ErrorProneScanner
- severityMap() - Method in class com.google.errorprone.scanner.Scanner
-
Returns a mapping between the canonical names of checks and their
BugPattern.SeverityLevel
. - severityMap() - Method in class com.google.errorprone.VisitorState
- SHIFT - Enum constant in enum com.google.errorprone.util.OperatorPrecedence
- SHORT_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
- ShortCircuitBoolean - Class in com.google.errorprone.bugpatterns
- ShortCircuitBoolean() - Constructor for class com.google.errorprone.bugpatterns.ShortCircuitBoolean
- ShortCircuitBoolean.TreeScannerBinary - Class in com.google.errorprone.bugpatterns
-
Replaces the operators when visiting the binary nodes
- shortName() - Method in enum com.google.errorprone.bugpatterns.TypesWithUndefinedEquality
- SHOULD_IGNORE - Static variable in class com.google.errorprone.bugpatterns.PreferredInterfaceType
- shouldBeVisible(Tree, VisitorState) - Method in enum com.google.errorprone.util.Visibility
-
Whether
tree
should be visible from the path instate
assuming we're in prod code. - shouldBeVisible(Symbol, VisitorState) - Method in enum com.google.errorprone.util.Visibility
-
Whether
symbol
should be visible from the path instate
assuming we're in prod code. - ShouldHaveEvenArgs - Class in com.google.errorprone.bugpatterns
-
Checks that variable argument methods have even number of arguments.
- ShouldHaveEvenArgs() - Constructor for class com.google.errorprone.bugpatterns.ShouldHaveEvenArgs
- shouldKeep(Tree) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns true if any of the given tree is a declaration annotated with an annotation with the simple name
@UsedReflectively
or@Keep
, or any annotations meta-annotated with an annotation with that simple name. - SideEffectAnalysis - Class in com.google.errorprone.util
-
This class is responsible for analyzing an expression and telling if the expression can have side effects.
- Signatures - Class in com.google.errorprone.util
-
Signature generation.
- simpleName() - Method in class com.google.errorprone.bugpatterns.StaticImports.StaticImportInfo
-
The simple name of the imported member.
- SIMPLIFICATION - Static variable in class com.google.errorprone.BugPattern.StandardTags
-
This check points out a coding pattern that, while functional, has an easier-to-read or faster alternative.
- singleStatementReturnMatcher(Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
-
Returns a matcher for
MethodTree
whose implementation contains a single return statement with expression matching the passedexpressionTreeMatcher
. - SizeGreaterThanOrEqualsZero - Class in com.google.errorprone.bugpatterns
-
Finds instances where one uses
Collection#size() >= 0
orT[].length > 0
. - SizeGreaterThanOrEqualsZero() - Constructor for class com.google.errorprone.bugpatterns.SizeGreaterThanOrEqualsZero
- SourceCodeEscapers - Class in com.google.errorprone.util
-
A factory for Escaper instances used to escape strings for safe use in Java.
- SourceFile - Class in com.google.errorprone.apply
-
Representation of a mutable Java source file.
- SourceFile(String, CharSequence) - Constructor for class com.google.errorprone.apply.SourceFile
- sourceTree() - Method in class com.google.errorprone.bugpatterns.collectionincompatibletype.AbstractCollectionIncompatibleTypeMatcher.MatchResult
- sourceType() - Method in class com.google.errorprone.bugpatterns.collectionincompatibletype.AbstractCollectionIncompatibleTypeMatcher.MatchResult
- SourceVersion - Class in com.google.errorprone.util
-
JDK source version utilities.
- span(Suppressible) - Method in class com.google.errorprone.ErrorProneTimings
-
Creates a timing span for the given
Suppressible
. - SPARSE_ARRAY - Enum constant in enum com.google.errorprone.bugpatterns.TypesWithUndefinedEquality
- specializedMatcher() - Method in class com.google.errorprone.bugpatterns.AbstractReturnValueIgnored
-
Match whatever additional conditions concrete subclasses want to match (a list of known side-effect-free methods, has a @CheckReturnValue annotation, etc.).
- specializedMatcher() - Method in class com.google.errorprone.bugpatterns.android.RectIntersectReturnValueIgnored
- specializedMatcher() - Method in class com.google.errorprone.bugpatterns.CheckReturnValue
-
Return a matcher for method invocations in which the method being called should be considered must-be-used.
- specializedMatcher() - Method in class com.google.errorprone.bugpatterns.FutureReturnValueIgnored
- specializedMatcher() - Method in class com.google.errorprone.bugpatterns.IgnoredPureGetter
- specializedMatcher() - Method in class com.google.errorprone.bugpatterns.ProtoBuilderReturnValueIgnored
- specializedMatcher() - Method in class com.google.errorprone.bugpatterns.ReturnValueIgnored
- specializedMatcher() - Method in class com.google.errorprone.bugpatterns.RxReturnValueIgnored
- splitToLowercaseTerms(String) - Static method in class com.google.errorprone.names.NamingConventions
-
Split a Java name into terms based on either Camel Case or Underscores.
- started(TaskEvent) - Method in class com.google.errorprone.ErrorProneAnalyzer.RefactoringTask
- startPosition() - Method in class com.google.errorprone.fixes.Replacement
-
The beginning of the replacement range.
- startPositionAdjustment - Variable in class com.google.errorprone.fixes.AdjustedPosition
- startWith(SuggestedFix) - Method in class com.google.errorprone.fixes.BranchedSuggestedFixes.Builder
- state - Variable in class com.google.errorprone.bugpatterns.BugChecker.SuppressibleTreePathScanner
- state - Variable in class com.google.errorprone.bugpatterns.ShortCircuitBoolean.TreeScannerBinary
-
saved state
- StatementSwitchToExpressionSwitch - Class in com.google.errorprone.bugpatterns
-
Checks for statement switches that can be expressed as an equivalent expression switch.
- STATIC - Enum constant in enum com.google.errorprone.annotations.Modifier
- STATIC - Enum constant in enum com.google.errorprone.matchers.method.MethodInvocationMatcher.MethodKind
- STATIC_FIRST_ORGANIZER - Static variable in interface com.google.errorprone.apply.ImportOrganizer
-
An
ImportOrganizer
that sorts import statements according to the Google Java Style Guide, i.e. - STATIC_IMPORT_ALWAYS - Enum constant in enum com.google.errorprone.refaster.ImportPolicy
-
When inlining static methods, always static import the method.
- STATIC_LAST_ORGANIZER - Static variable in interface com.google.errorprone.apply.ImportOrganizer
-
An
ImportOrganizer
that sorts import statements so that non-static imports come first, and static and non-static separated by blank line. - StaticAssignmentInConstructor - Class in com.google.errorprone.bugpatterns
-
Checks for static fields being assigned within constructors.
- StaticAssignmentInConstructor() - Constructor for class com.google.errorprone.bugpatterns.StaticAssignmentInConstructor
- StaticAssignmentOfThrowable - Class in com.google.errorprone.bugpatterns
-
Checks for static fields being assigned with
Throwable
. - StaticAssignmentOfThrowable() - Constructor for class com.google.errorprone.bugpatterns.StaticAssignmentOfThrowable
- staticEqualsInvocation() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an invocation of a recognized static object equality method such as
Objects.equals(java.lang.Object, java.lang.Object)
. - staticField(String, String) - Static method in class com.google.errorprone.matchers.FieldMatchers
- staticFieldAccess() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches an AST node which is an expression yielding the indicated static field access.
- StaticGuardedByInstance - Class in com.google.errorprone.bugpatterns.threadsafety
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - StaticGuardedByInstance() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.StaticGuardedByInstance
- StaticImportInfo() - Constructor for class com.google.errorprone.bugpatterns.StaticImports.StaticImportInfo
- staticImports() - Element in annotation type com.google.errorprone.annotations.InlineMe
-
The new static imports to (optionally) add to the caller.
- StaticImports - Class in com.google.errorprone.bugpatterns
-
Logic for inspecting static imports used by
NonCanonicalStaticImport
,NonCanonicalStaticMemberImport
, andUnnecessaryStaticImport
. - StaticImports.StaticImportInfo - Class in com.google.errorprone.bugpatterns
-
Information about a static import.
- staticMethod() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches a static method.
- staticMethod() - Static method in class com.google.errorprone.matchers.method.MethodMatchers
- StaticMockMember - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - StaticMockMember() - Constructor for class com.google.errorprone.bugpatterns.StaticMockMember
- StaticOrDefaultInterfaceMethod - Class in com.google.errorprone.bugpatterns.android
- StaticOrDefaultInterfaceMethod() - Constructor for class com.google.errorprone.bugpatterns.android.StaticOrDefaultInterfaceMethod
- StaticQualifiedUsingExpression - Class in com.google.errorprone.bugpatterns
- StaticQualifiedUsingExpression() - Constructor for class com.google.errorprone.bugpatterns.StaticQualifiedUsingExpression
- staticReference(Inliner, CharSequence, CharSequence, CharSequence) - Method in enum com.google.errorprone.refaster.ImportPolicy
- StatisticsCollector - Interface in com.google.errorprone
-
A collector of counters keyed by strings.
- streamReceivers(ExpressionTree) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns a
Stream
ofExpressionTree
s resulting from callingASTHelpers.getReceiver(ExpressionTree)
repeatedly until no receiver exists. - StreamResourceLeak - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - StreamResourceLeak() - Constructor for class com.google.errorprone.bugpatterns.StreamResourceLeak
- streamSuperMethods(Symbol.MethodSymbol, Types) - Static method in class com.google.errorprone.util.ASTHelpers
- StreamToIterable - Class in com.google.errorprone.bugpatterns
-
Discourage
stream::iterator
to createIterable
s. - StreamToIterable() - Constructor for class com.google.errorprone.bugpatterns.StreamToIterable
- StreamToString - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - StrictFormatStringValidation - Class in com.google.errorprone.bugpatterns.formatstring
-
Format string validation utility that fails on more cases than
FormatStringValidation
to enforce strict format string checking. - STRICTFP - Enum constant in enum com.google.errorprone.annotations.Modifier
- STRING_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
- StringBuilderInitWithChar - Class in com.google.errorprone.bugpatterns
- StringBuilderInitWithChar() - Constructor for class com.google.errorprone.bugpatterns.StringBuilderInitWithChar
- StringCaseLocaleUsage - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
that flags calls toString.toLowerCase()
andString.toUpperCase()
, as these methods implicitly rely on the environment's default locale. - StringCaseLocaleUsage() - Constructor for class com.google.errorprone.bugpatterns.StringCaseLocaleUsage
- StringCharset - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - StringCharset() - Constructor for class com.google.errorprone.bugpatterns.StringCharset
- stringContainsComments(CharSequence, Context) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns true if the given source code contains comments.
- StringFormatWithLiteral - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - StringFormatWithLiteral() - Constructor for class com.google.errorprone.bugpatterns.StringFormatWithLiteral
- stringLit(String) - Static method in class com.google.errorprone.refaster.ULiteral
- stringLiteral(String) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches a Literal AST node if it is a string literal with the given value.
- stringLiteral(Pattern) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches a Literal AST node if it is a string literal which matches the given
Pattern
. - StringLiteral - Class in com.google.errorprone.matchers
- StringLiteral(String) - Constructor for class com.google.errorprone.matchers.StringLiteral
- StringLiteral(Pattern) - Constructor for class com.google.errorprone.matchers.StringLiteral
- StringName - Class in com.google.errorprone.refaster
-
A simple wrapper to view a
String
as aName
. - StringName() - Constructor for class com.google.errorprone.refaster.StringName
- StringSplitter - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - StringSplitter() - Constructor for class com.google.errorprone.bugpatterns.StringSplitter
- stringVal() - Method in class com.google.errorprone.util.ErrorProneToken
- stripParentheses(ExpressionTree) - Static method in class com.google.errorprone.util.ASTHelpers
-
Given an ExpressionTree, removes any enclosing parentheses.
- stripParentheses(Tree) - Static method in class com.google.errorprone.util.ASTHelpers
-
Removes any enclosing parentheses from the tree.
- StronglyType - Class in com.google.errorprone.bugpatterns
-
Helper for strongly typing fields.
- StronglyType() - Constructor for class com.google.errorprone.bugpatterns.StronglyType
- StronglyType.Builder - Class in com.google.errorprone.bugpatterns
-
Builder for
StronglyType
- StronglyTypeByteString - Class in com.google.errorprone.bugpatterns
-
Flags fields which would be better expressed as ByteStrings rather than primitive byte arrays.
- StronglyTypeByteString() - Constructor for class com.google.errorprone.bugpatterns.StronglyTypeByteString
- StronglyTypeTime - Class in com.google.errorprone.bugpatterns.time
-
Flags fields which would be better expressed as time types rather than primitive integers.
- StronglyTypeTime() - Constructor for class com.google.errorprone.bugpatterns.time.StronglyTypeTime
- STYLE - Static variable in class com.google.errorprone.BugPattern.StandardTags
-
This check detects a coding pattern that is valid within the Java language and doesn't represent a runtime defect, but is otherwise discouraged for reasons of consistency within a project or ease of understanding by other programmers.
- subcomponentBuilders() - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.DaggerRules
-
Returns a rule that handles
@dagger.Subcomponent.Builder
types, making their fluent setter methods' results ignorable. - SubContext - Class in com.google.errorprone
-
A view on top of a
Context
allowing additional modifications to be added without affecting the underlyingContext
. - SubContext(Context) - Constructor for class com.google.errorprone.SubContext
- subSequence(int, int) - Method in class com.google.errorprone.refaster.StringName
- SubstringOfZero - Class in com.google.errorprone.bugpatterns
-
Check for calls to String's
foo.substring(0)
. - SubstringOfZero() - Constructor for class com.google.errorprone.bugpatterns.SubstringOfZero
- suggestedExemptingAnnotationSupported(Element) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Returns true iff
suggestExemptingAnnotation()
supports this annotation. - SuggestedFix - Class in com.google.errorprone.fixes
- SuggestedFix() - Constructor for class com.google.errorprone.fixes.SuggestedFix
- SuggestedFix.Builder - Class in com.google.errorprone.fixes
-
Builds
SuggestedFix
s. - SuggestedFixes - Class in com.google.errorprone.fixes
-
Factories for constructing
Fix
es. - SuggestedFixes.AdditionPosition - Enum in com.google.errorprone.fixes
-
Instructs
SuggestedFixes.addMembers(ClassTree, VisitorState, AdditionPosition, String, String...)
whether to add the new member(s) at the beginning of the class, or at the end. - SuggestedFixes.FixCompiler - Class in com.google.errorprone.fixes
-
A class to hold the files from the compilation context, with a diff applied to the currently-processed one; the files can then be recompiled.
- SuggestedFixes.FixCompiler.Result - Class in com.google.errorprone.fixes
-
The result of the compilation.
- Suggester - Class in com.google.errorprone.bugpatterns.inlineme
-
Checker that recommends using
@InlineMe
on single-statement deprecated APIs. - suggestExemptingAnnotation(String, TreePath, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Create a fix to add a suppression annotation on the surrounding class.
- SUGGESTION - Enum constant in enum com.google.errorprone.BugPattern.SeverityLevel
-
Note that this level generally disables the bug checker.
- summary - Variable in class com.google.errorprone.BugPatternInstance
- summary() - Element in annotation type com.google.errorprone.BugPattern
-
A short summary of the problem that this checker detects.
- SunApi - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - SunApi() - Constructor for class com.google.errorprone.bugpatterns.SunApi
- SuperCallToObjectMethod - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - SuperCallToObjectMethod() - Constructor for class com.google.errorprone.bugpatterns.SuperCallToObjectMethod
- supplier - Variable in class com.google.errorprone.predicates.type.Exact
- Supplier<T> - Interface in com.google.errorprone.suppliers
-
Simple supplier pattern, which allows delayed binding to access to runtime elements.
- Suppliers - Class in com.google.errorprone.suppliers
- supportsEffectivelyFinal(Context) - Static method in class com.google.errorprone.util.SourceVersion
-
Returns true if the compiler source version level supports effectively final.
- supportsPatternMatchingInstanceof(Context) - Static method in class com.google.errorprone.util.SourceVersion
-
Returns whether the compiler supports pattern-matching instanceofs.
- supportsStaticInnerClass(Context) - Static method in class com.google.errorprone.util.SourceVersion
-
Returns true if the compiler source version level supports static inner classes.
- supportsSuppressWarnings() - Method in class com.google.errorprone.BugCheckerInfo
- supportsSuppressWarnings() - Method in class com.google.errorprone.bugpatterns.BugChecker
- supportsSuppressWarnings() - Method in interface com.google.errorprone.matchers.Suppressible
-
Returns true if this checker can be suppressed using
@SuppressWarnings
. - supportsSwitchExpressions(Context) - Static method in class com.google.errorprone.util.SourceVersion
-
Returns true if the compiler source version level supports switch expressions.
- supportsTextBlocks(Context) - Static method in class com.google.errorprone.util.SourceVersion
-
Returns true if the compiler source version level supports text blocks.
- suppressAnnotation(Class<? extends Annotation>) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Builder
-
An annotation which, when found on a class, should suppress the test
- suppressAnnotation(Iterable<String>) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Builder
-
An annotation which, when found on a class, should suppress the test
- SUPPRESSED - Enum constant in enum com.google.errorprone.SuppressionInfo.SuppressedState
- suppressedByAnyOf(Set<Name>, VisitorState) - Method in class com.google.errorprone.bugpatterns.BugChecker
- suppressedByAnyOf(Set<Name>, VisitorState) - Method in interface com.google.errorprone.matchers.Suppressible
- suppressedRegions(VisitorState) - Method in class com.google.errorprone.bugpatterns.BugChecker
-
Computes a RangeSet of code regions which are suppressed by this bug checker.
- suppressedState(Suppressible, boolean, VisitorState) - Method in class com.google.errorprone.SuppressionInfo
-
Returns true if this checker should be considered suppressed given the signals present in this object.
- Suppressible - Interface in com.google.errorprone.matchers
- SuppressibleTreePathScanner(VisitorState) - Constructor for class com.google.errorprone.bugpatterns.BugChecker.SuppressibleTreePathScanner
- suppressionAnnotations - Variable in class com.google.errorprone.BugPatternInstance
- suppressionAnnotations() - Element in annotation type com.google.errorprone.BugPattern
-
A set of annotation types that can be used to suppress the check.
- SuppressionInfo - Class in com.google.errorprone
-
Immutable container of "suppression signals" - annotations or other information gathered from source - that can be used to determine if a specific
Suppressible
object should be considered suppressed. - SuppressionInfo.SuppressedState - Enum in com.google.errorprone
- SuppressPackageLocation - Annotation Type in com.google.errorprone.annotations
-
Indicates that the PackageLocation warning should be suppressed for this package.
- SuppressWarningsDeprecated - Class in com.google.errorprone.bugpatterns
-
Find uses of SuppressWarnings with "deprecated".
- SuppressWarningsDeprecated() - Constructor for class com.google.errorprone.bugpatterns.SuppressWarningsDeprecated
- SuppressWarningsWithoutExplanation - Class in com.google.errorprone.bugpatterns
-
Finds occurrences of
@SuppressWarnings
where there is definitely no explanation for why it is safe. - SuppressWarningsWithoutExplanation() - Constructor for class com.google.errorprone.bugpatterns.SuppressWarningsWithoutExplanation
- SuppressWarningsWithoutExplanation(boolean) - Constructor for class com.google.errorprone.bugpatterns.SuppressWarningsWithoutExplanation
- surroundingClass(Symbol.MethodSymbol) - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.ExternalCanIgnoreReturnValue
- swap(Tree, Tree) - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
- swap(Tree, Tree) - Static method in class com.google.errorprone.fixes.SuggestedFix
- SwigMemoryLeak - Class in com.google.errorprone.bugpatterns
- SwigMemoryLeak() - Constructor for class com.google.errorprone.bugpatterns.SwigMemoryLeak
- SwitchDefault - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - SwitchDefault() - Constructor for class com.google.errorprone.bugpatterns.SwitchDefault
- sym() - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.Erroneous
- sym() - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression
- sym() - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.ThisLiteral
- sym() - Method in class com.google.errorprone.matchers.method.ConstructorMatchState
-
The method being matched.
- sym() - Method in interface com.google.errorprone.matchers.method.MatchState
-
The method being matched.
- symbol() - Method in class com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions.PureMethodInvocation
- symbolHasAnnotation(Class<? extends Annotation>) - Static method in class com.google.errorprone.matchers.Matchers
-
Determines whether an expression refers to a symbol that has an annotation of the given type.
- symbolHasAnnotation(String) - Static method in class com.google.errorprone.matchers.Matchers
-
Determines whether an expression refers to a symbol that has an annotation of the given type.
- symbolizeImmutableExpression(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions
-
Returns a list of the methods called to get to this expression, as well as a terminating variable if needed.
- symbolMatcher(BiPredicate<Symbol, VisitorState>) - Static method in class com.google.errorprone.matchers.Matchers
-
Match a Tree based solely on the Symbol produced by
ASTHelpers.getSymbol(Tree)
. - SymbolRule() - Constructor for class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule.SymbolRule
- SymbolToString - Class in com.google.errorprone.bugpatterns
-
Flags
javax.lang.model.element.Element#toString
usage inBugChecker
s. - symtab() - Method in class com.google.errorprone.refaster.Inliner
- SYNCHRONIZED - Enum constant in enum com.google.errorprone.annotations.Modifier
- SynchronizeOnNonFinalField - Class in com.google.errorprone.bugpatterns.threadsafety
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - SynchronizeOnNonFinalField() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.SynchronizeOnNonFinalField
- SystemConsoleNull - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - SystemConsoleNull() - Constructor for class com.google.errorprone.bugpatterns.SystemConsoleNull
- SystemExitOutsideMain - Class in com.google.errorprone.bugpatterns
-
Check for calls to
System.exit()
outside of a main method. - SystemExitOutsideMain() - Constructor for class com.google.errorprone.bugpatterns.SystemExitOutsideMain
- SystemOut - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - SystemOut() - Constructor for class com.google.errorprone.bugpatterns.SystemOut
T
- tags - Variable in class com.google.errorprone.BugPatternInstance
- tags() - Element in annotation type com.google.errorprone.BugPattern
-
A list of Stringly-typed tags to apply to this check.
- TargetEnumConverter() - Constructor for class com.google.errorprone.DocGenTool.TargetEnumConverter
- targetType() - Method in class com.google.errorprone.bugpatterns.collectionincompatibletype.AbstractCollectionIncompatibleTypeMatcher.MatchResult
- targetType(VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
-
Returns the target type of the tree at the given
VisitorState
's path, or elsenull
. - TargetType() - Constructor for class com.google.errorprone.util.ASTHelpers.TargetType
- template(ExpressionTree) - Method in class com.google.errorprone.refaster.UTemplater
- template(StatementTree) - Method in class com.google.errorprone.refaster.UTemplater
- template(Tree) - Method in class com.google.errorprone.refaster.UTemplater
- template(Type) - Method in class com.google.errorprone.refaster.UTemplater
- Template<M> - Class in com.google.errorprone.refaster
-
Abstract superclass for templates that can be used to search and replace in a Java syntax tree.
- Template() - Constructor for class com.google.errorprone.refaster.Template
- TemplateMatch - Class in com.google.errorprone.refaster
-
Abstract type representing a match against a
Template
. - TemplateMatch(JCTree, Unifier) - Constructor for class com.google.errorprone.refaster.TemplateMatch
- templateType(Tree) - Method in class com.google.errorprone.refaster.UTemplater
- templateTypeVariables() - Method in class com.google.errorprone.refaster.Template
- TemporalAccessorGetChronoField - Class in com.google.errorprone.bugpatterns.time
-
Bans calls to
TemporalAccessor.get(ChronoField)
where the implementation is guaranteed to throw anUnsupportedTemporalTypeException
. - TemporalAccessorGetChronoField() - Constructor for class com.google.errorprone.bugpatterns.time.TemporalAccessorGetChronoField
- TermEditDistance - Class in com.google.errorprone.names
-
A utility class for finding the distance between two identifiers.
- TermEditDistance() - Constructor for class com.google.errorprone.names.TermEditDistance
- TermEditDistance(BiFunction<String, String, Double>, BiFunction<Integer, Integer, Double>) - Constructor for class com.google.errorprone.names.TermEditDistance
-
Creates a TermEditDistance Object
- TERNARY - Enum constant in enum com.google.errorprone.util.OperatorPrecedence
- TEST_CASE - Static variable in class com.google.errorprone.matchers.JUnitMatchers
-
Matches a JUnit 3 or 4 test case.
- TestExceptionChecker - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - TestExceptionChecker() - Constructor for class com.google.errorprone.bugpatterns.TestExceptionChecker
- testFileManager() - Static method in class com.google.errorprone.FileManagers
-
Returns a
JavacFileManager
for use in compiler-based tests. - TestNgMatchers - Class in com.google.errorprone.matchers
-
Matchers for code patterns which appear to be TestNG-based tests.
- TestParametersNotInitialized - Class in com.google.errorprone.bugpatterns
-
Flags uses of parameters in non-parameterized tests.
- TestParametersNotInitialized() - Constructor for class com.google.errorprone.bugpatterns.TestParametersNotInitialized
- TEXT_MATCH - Enum constant in enum com.google.errorprone.BugCheckerRefactoringTestHelper.TestMode
- then() - Method in class com.google.errorprone.fixes.BranchedSuggestedFixes.Builder
- thenChoose(Function<? super T, Choice<R>>) - Method in class com.google.errorprone.refaster.Choice
-
Returns all the choices obtained by choosing from this
Choice
and then choosing from theChoice
yielded by this function on the result. - thenOption(Function<? super T, Optional<R>>) - Method in class com.google.errorprone.refaster.Choice
-
Returns all the choices obtained by choosing from this
Choice
and yielding a presentOptional
. - TheoryButNoTheories - Class in com.google.errorprone.bugpatterns
-
Flags uses of
@Theory
(and others) in non-Theories
-run tests. - TheoryButNoTheories() - Constructor for class com.google.errorprone.bugpatterns.TheoryButNoTheories
- THIRD - Enum constant in enum com.google.errorprone.BugCheckerRefactoringTestHelper.FixChoosers
- THIS - Enum constant in enum com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.Kind
- thisExpression(Type) - Method in class com.google.errorprone.refaster.Unifier
- ThreadJoinLoop - Class in com.google.errorprone.bugpatterns
- ThreadJoinLoop() - Constructor for class com.google.errorprone.bugpatterns.ThreadJoinLoop
- ThreadLocalUsage - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - ThreadLocalUsage() - Constructor for class com.google.errorprone.bugpatterns.ThreadLocalUsage
- ThreadPriorityCheck - Class in com.google.errorprone.bugpatterns.threadsafety
-
Bug checker to detect usage of
Thread.stop()
,Thread.yield()
, and changing thread priorities. - ThreadPriorityCheck() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.ThreadPriorityCheck
- ThreadSafe - Annotation Type in com.google.errorprone.annotations
-
This annotation indicates that the class/interface it is applied to is thread safe
- ThreadSafeAnalysis - Class in com.google.errorprone.bugpatterns.threadsafety
-
Analyzes types for deep thread safety.
- ThreadSafeAnalysis(BugChecker, VisitorState, WellKnownThreadSafety) - Constructor for class com.google.errorprone.bugpatterns.threadsafety.ThreadSafeAnalysis
- threadSafeBuilder(WellKnownThreadSafety) - Static method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety
- ThreadSafeChecker - Class in com.google.errorprone.bugpatterns.threadsafety
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - threadSafeInstantiation(Set<String>, AnnotationInfo, Type) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety
-
Check that a type-use of an
@ThreadSafe
-annotated type is instantiated with threadsafe type arguments where required by its annotation's containerOf element. - threadSafeInstantiation(Set<String>, AnnotationInfo, Type, Set<Symbol.TypeVariableSymbol>) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety
- ThreadSafety - Class in com.google.errorprone.bugpatterns.threadsafety
-
A class which gives information about the annotation of types; if a type isn't annotated,
ThreadSafety.Violation
gives information as to why it is not. - ThreadSafety.Builder - Class in com.google.errorprone.bugpatterns.threadsafety
-
ThreadSafety
Builder - ThreadSafety.Purpose - Enum in com.google.errorprone.bugpatterns.threadsafety
-
The
ThreadSafety
utility class can be used by either the bug checker that enforces immutability or by the bug checker that enforces thread-safety. - ThreadSafety.Violation - Class in com.google.errorprone.bugpatterns.threadsafety
-
A human-friendly explanation of a thread safety violations.
- ThreadSafetyKnownTypes - Interface in com.google.errorprone.bugpatterns.threadsafety
-
Information about known types and whether they're known to be safe or unsafe.
- ThreadSafetyKnownTypes.MapBuilder - Class in com.google.errorprone.bugpatterns.threadsafety
-
Helper for building maps of classes to
AnnotationInfo
. - ThreadSafeTypeParameter - Annotation Type in com.google.errorprone.annotations
-
When a
ThreadSafe
class has type parameters, annotating a parameter withThreadSafeTypeParameter
enforces that declarations of this class must, for that type parameter, use a type that is itself thread-safe. - threadSafeTypeParametersInScope(Symbol) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafeAnalysis
- threadSafeTypeParametersInScope(Symbol) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety
-
Gets the set of in-scope threadsafe type parameters from the containerOf specs on annotations.
- ThreeLetterTimeZoneID - Class in com.google.errorprone.bugpatterns
- ThreeLetterTimeZoneID() - Constructor for class com.google.errorprone.bugpatterns.ThreeLetterTimeZoneID
- THROWABLE_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
- ThrowIfUncheckedKnownChecked - Class in com.google.errorprone.bugpatterns
-
A BugPattern; see the summary.
- ThrowIfUncheckedKnownChecked() - Constructor for class com.google.errorprone.bugpatterns.ThrowIfUncheckedKnownChecked
- ThrowIfUncheckedKnownUnchecked - Class in com.google.errorprone.bugpatterns
-
A BugPattern; see the summary.
- ThrowIfUncheckedKnownUnchecked() - Constructor for class com.google.errorprone.bugpatterns.ThrowIfUncheckedKnownUnchecked
- ThrowNull - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - ThrowNull() - Constructor for class com.google.errorprone.bugpatterns.ThrowNull
- Throws - Class in com.google.errorprone.matchers
-
Matches a
throw
statement whose thrown expression is matched by the given matcher. - Throws(Matcher<? super ExpressionTree>) - Constructor for class com.google.errorprone.matchers.Throws
-
New matcher for a
throw
statement where the thrown item is matched by the passedthrownMatcher
. - ThrowSpecificExceptions - Class in com.google.errorprone.bugpatterns
-
Bugpattern to discourage throwing base exception classes.
- ThrowSpecificExceptions() - Constructor for class com.google.errorprone.bugpatterns.ThrowSpecificExceptions
- throwStatement(Matcher<? super ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches a
throw
statement where the thrown item is matched by the passedthrownMatcher
. - ThrowsUncheckedException - Class in com.google.errorprone.bugpatterns
-
Suggests to remove the unchecked throws clause.
- ThrowsUncheckedException() - Constructor for class com.google.errorprone.bugpatterns.ThrowsUncheckedException
- TimeUnitConversionChecker - Class in com.google.errorprone.bugpatterns.time
-
Check for problematic or suspicious TimeUnit conversion calls.
- TimeUnitConversionChecker() - Constructor for class com.google.errorprone.bugpatterns.time.TimeUnitConversionChecker
- TimeUnitMismatch - Class in com.google.errorprone.bugpatterns.time
-
Checker that detects likely time-unit mismatches by looking at identifier names.
- timings() - Method in class com.google.errorprone.ErrorProneTimings
-
Returns the elapsed durations of each timer.
- timingSpan(Suppressible) - Method in class com.google.errorprone.VisitorState
-
Returns a timing span for the given
Suppressible
. - toBuilder() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
- toBuilder() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
- toBuilder() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
- toBuilder() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
- toBuilder() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
- toBuilder() - Method in class com.google.errorprone.dataflow.AccessPathStore
- toBuilder() - Method in class com.google.errorprone.fixes.SuggestedFix
- toModifier() - Method in enum com.google.errorprone.matchers.MethodVisibility.Visibility
- Tool support - Search tag in annotation type com.google.errorprone.annotations.DoNotCall
- Section
- TooManyParameters - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - toProto() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiff
-
Converts a
ApiDiff
to aApiDiffProto.Diff
. - toString() - Method in class com.google.errorprone.apply.ImportOrganizer.Import
- toString() - Method in class com.google.errorprone.apply.ImportStatements
-
Returns a string representation of the imports as Java code in correct order.
- toString() - Method in class com.google.errorprone.BugCheckerInfo
- toString() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiff.ClassMemberKey
- toString() - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.Api
- toString() - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule
- toString() - Method in class com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions.ConstantEquals
- toString() - Method in class com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions.ConstantExpression
- toString() - Method in class com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions.PureMethodInvocation
- toString() - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression
- toString() - Method in exception class com.google.errorprone.bugpatterns.threadsafety.IllegalGuardedBy
- toString() - Method in enum com.google.errorprone.dataflow.nullnesspropagation.Nullness
- toString() - Method in class com.google.errorprone.refaster.Bindings.Key
- toString() - Method in class com.google.errorprone.refaster.Choice
- toString() - Method in class com.google.errorprone.refaster.LocalVarBinding
- toString() - Method in class com.google.errorprone.refaster.RefasterRule
- toString() - Method in class com.google.errorprone.refaster.StringName
- toString() - Method in class com.google.errorprone.refaster.Unifier
- toString() - Method in class com.google.errorprone.refaster.UTypeVar
- toString() - Method in class com.google.errorprone.refaster.UTypeVar.TypeWithExpression
- toString() - Method in class com.google.errorprone.util.ErrorProneComment
- toString() - Method in class com.google.errorprone.util.ErrorProneToken
- toString(JCTree.JCCompilationUnit) - Method in interface com.google.errorprone.fixes.Fix
- toString(JCTree.JCCompilationUnit) - Method in class com.google.errorprone.fixes.SuggestedFix
- toStringFix(Tree, ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractToString
-
Constructs a fix for an explicit toString call, e.g.
- toStringFix(Tree, ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AnnotationMirrorToString
- toStringFix(Tree, ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AnnotationValueToString
- toStringFix(Tree, ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ArrayToString
- toStringFix(Tree, ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.LiteProtoToString
- toStringFix(Tree, ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ObjectToString
- toStringFix(Tree, ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.StreamToString
- toStringFix(Tree, ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.SymbolToString
- toStringFix(Tree, ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.TreeToString
- toStringFix(Tree, ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.TypeToString
- toStringMethodDeclaration() - Static method in class com.google.errorprone.matchers.Matchers
-
Matches
Object.toString()
method declaration. - ToStringReturnsNull - Class in com.google.errorprone.bugpatterns
-
ToString should not return null.
- ToStringReturnsNull() - Constructor for class com.google.errorprone.bugpatterns.ToStringReturnsNull
- toType(Class<S>, Matcher<? super S>) - Static method in class com.google.errorprone.matchers.Matchers
-
Converts the given matcher to one that can be applied to any tree but is only executed when run on a tree of
type
and returnsfalse
for all other tree types. - TraditionalSwitchExpression - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - TraditionalSwitchExpression() - Constructor for class com.google.errorprone.bugpatterns.TraditionalSwitchExpression
- transform(Function<? super T, R>) - Method in class com.google.errorprone.refaster.Choice
-
Maps the choices with the specified function.
- transformers() - Method in class com.google.errorprone.CompositeCodeTransformer
- TRANSIENT - Enum constant in enum com.google.errorprone.annotations.Modifier
- TransientMisuse - Class in com.google.errorprone.bugpatterns
-
Warns against use of both
static
andtransient
modifiers on field declarations. - TransientMisuse() - Constructor for class com.google.errorprone.bugpatterns.TransientMisuse
- tree() - Method in class com.google.errorprone.util.Commented
- TreeScannerBinary(VisitorState) - Constructor for class com.google.errorprone.bugpatterns.ShortCircuitBoolean.TreeScannerBinary
-
constructor
- TreeToString - Class in com.google.errorprone.bugpatterns
-
Flags
com.sun.source.tree.Tree#toString
usage inBugChecker
s. - TrustingNullnessAnalysis - Class in com.google.errorprone.dataflow.nullnesspropagation
-
An interface to the "trusting" nullness analysis.
- TruthAssertExpected - Class in com.google.errorprone.bugpatterns
-
Detects usages of Truth assertions with the expected and actual values reversed.
- TruthAssertExpected() - Constructor for class com.google.errorprone.bugpatterns.TruthAssertExpected
- TruthConstantAsserts - Class in com.google.errorprone.bugpatterns
-
Points out if Truth Library assert is called on a constant.
- TruthConstantAsserts() - Constructor for class com.google.errorprone.bugpatterns.TruthConstantAsserts
- TruthContainsExactlyElementsInUsage - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - TruthContainsExactlyElementsInUsage() - Constructor for class com.google.errorprone.bugpatterns.TruthContainsExactlyElementsInUsage
- TruthGetOrDefault - Class in com.google.errorprone.bugpatterns
-
Flags ambiguous usages of
Map#getOrDefault
withinTruth#assertThat
. - TruthGetOrDefault() - Constructor for class com.google.errorprone.bugpatterns.TruthGetOrDefault
- TruthIncompatibleType - Class in com.google.errorprone.bugpatterns.collectionincompatibletype
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - truthiness(ExpressionTree, boolean, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions
-
Scans an
ExpressionTree
to find anything guaranteed to be false or true if this expression is true. - Truthiness() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions.Truthiness
- tryCreate(ImportTree, VisitorState) - Static method in class com.google.errorprone.bugpatterns.StaticImports
-
Returns a
StaticImports.StaticImportInfo
if the given import is a static single-type import. - tryCreate(MemberSelectTree, VisitorState) - Static method in class com.google.errorprone.bugpatterns.StaticImports
- TryFailRefactoring - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - TryFailRefactoring() - Constructor for class com.google.errorprone.bugpatterns.TryFailRefactoring
- TryFailThrowable - Class in com.google.errorprone.bugpatterns
-
A bug checker for the following code pattern:
- TryFailThrowable() - Constructor for class com.google.errorprone.bugpatterns.TryFailThrowable
- tryFailToAssertThrows(TryTree, List<? extends StatementTree>, Optional<Tree>, VisitorState) - Static method in class com.google.errorprone.bugpatterns.AssertThrowsUtils
-
Transforms a try-catch block in the try-fail pattern into a call to JUnit's
assertThrows
, inserting the behavior of thetry
block into a lambda parameter, and assigning the expected exception to a variable, if it is used within thecatch
block. - TryWithResourcesVariable - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - TryWithResourcesVariable() - Constructor for class com.google.errorprone.bugpatterns.TryWithResourcesVariable
- type() - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.Erroneous
- type() - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.ThisLiteral
- type() - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression
- type() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.DefinedIn
- type() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.Kind
- type() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.MethodName
- type() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ParameterTypes
- type() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ReceiverSupertype
- type() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ReceiverType
- type() - Method in interface com.google.errorprone.matchers.method.MethodInvocationMatcher.Token
-
The category of properties that this value falls into.
- type() - Method in class com.google.errorprone.refaster.UTypeVar.TypeWithExpression
- type() - Method in class com.google.errorprone.util.ASTHelpers.TargetType
- TYPE_LITERAL - Enum constant in enum com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.Kind
- typeCast(Matcher<Tree>, Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches a type cast AST node if both of the given matchers match.
- typecheck(Unifier, Inliner, Warner, List<Type>, List<Type>) - Method in class com.google.errorprone.refaster.Template
- TypeCompatibility - Class in com.google.errorprone.bugpatterns
-
Methods to answer the question: are these two types "compatible" with each other, in the context of an equality check?
- TypeCompatibility.TypeCompatibilityReport - Class in com.google.errorprone.bugpatterns
- TypeCompatibilityReport() - Constructor for class com.google.errorprone.bugpatterns.TypeCompatibility.TypeCompatibilityReport
- TypeEqualsChecker - Class in com.google.errorprone.bugpatterns
-
Flags com.sun.tools.javac.code.Type#equals usage.
- TypeEqualsChecker() - Constructor for class com.google.errorprone.bugpatterns.TypeEqualsChecker
- typeFromClass(Class<?>) - Static method in class com.google.errorprone.suppliers.Suppliers
-
Given the class representation of a type, supplies the corresponding type.
- typeFromString(String) - Static method in class com.google.errorprone.suppliers.Suppliers
-
Given the string representation of a type, supplies the corresponding type.
- TypeLiteral() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.TypeLiteral
- typeName() - Method in class com.google.errorprone.bugpatterns.threadsafety.AnnotationInfo
- TypeNameShadowing - Class in com.google.errorprone.bugpatterns
-
Warns when a type parameter shadows another type name in scope.
- TypeNameShadowing() - Constructor for class com.google.errorprone.bugpatterns.TypeNameShadowing
- typeParameterAnnotation(Class<? extends Annotation>) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Builder
-
An annotation which, when found on a type parameter, indicates that the type parameter may only be instantiated with thread-safe types.
- typeParameterAnnotation(Iterable<String>) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Builder
-
An annotation which, when found on a type parameter, indicates that the type parameter may only be instantiated with thread-safe types.
- TypeParameterNaming - Class in com.google.errorprone.bugpatterns
-
Enforces type parameters match the google style guide.
- TypeParameterNaming() - Constructor for class com.google.errorprone.bugpatterns.TypeParameterNaming
- TypeParameterNaming.TypeParameterNamingClassification - Enum in com.google.errorprone.bugpatterns
-
An enum that classifies a String name into different types, based on the Google Java Style Guide's rules for Type Parameters.
- TypeParameterQualifier - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - TypeParameterQualifier() - Constructor for class com.google.errorprone.bugpatterns.TypeParameterQualifier
- TypeParameterShadowing - Class in com.google.errorprone.bugpatterns
- TypeParameterShadowing() - Constructor for class com.google.errorprone.bugpatterns.TypeParameterShadowing
- TypeParameterUnusedInFormals - Class in com.google.errorprone.bugpatterns
- TypeParameterUnusedInFormals() - Constructor for class com.google.errorprone.bugpatterns.TypeParameterUnusedInFormals
- typePredicate() - Method in class com.google.errorprone.bugpatterns.AbstractToString
-
The type to match on.
- typePredicate() - Method in class com.google.errorprone.bugpatterns.AnnotationMirrorToString
- typePredicate() - Method in class com.google.errorprone.bugpatterns.AnnotationValueToString
- typePredicate() - Method in class com.google.errorprone.bugpatterns.ArrayToString
- typePredicate() - Method in class com.google.errorprone.bugpatterns.LiteProtoToString
- typePredicate() - Method in class com.google.errorprone.bugpatterns.ObjectToString
- typePredicate() - Method in class com.google.errorprone.bugpatterns.StreamToString
- typePredicate() - Method in class com.google.errorprone.bugpatterns.SymbolToString
- typePredicate() - Method in class com.google.errorprone.bugpatterns.TreeToString
- typePredicate() - Method in class com.google.errorprone.bugpatterns.TypeToString
- TypePredicate - Interface in com.google.errorprone.predicates
-
A predicate for testing
Type
s. - typePredicateMatcher(TypePredicate) - Static method in class com.google.errorprone.matchers.Matchers
-
Match a Tree based solely on the type produced by
ASTHelpers.getType(Tree)
. - TypePredicates - Class in com.google.errorprone.predicates
-
A collection of
TypePredicate
s. - types - Variable in class com.google.errorprone.predicates.type.DescendantOfAny
- types - Variable in class com.google.errorprone.predicates.type.ExactAny
- types() - Method in class com.google.errorprone.refaster.Inliner
- types() - Method in class com.google.errorprone.refaster.Unifier
- TypesWithUndefinedEquality - Enum in com.google.errorprone.bugpatterns
-
Enumerates types which have poorly-defined behaviour for equals.
- typeToCompareSupplier - Variable in class com.google.errorprone.matchers.AbstractTypeMatcher
- TypeToString - Class in com.google.errorprone.bugpatterns
-
Flags
javax.lang.model.type.TypeMirror#toString
usage inBugChecker
s. - TypeWithExpression() - Constructor for class com.google.errorprone.refaster.UTypeVar.TypeWithExpression
U
- UAnyOf - Class in com.google.errorprone.refaster
-
UExpression
allowing a match against any of a list of expressions. - UAnyOf() - Constructor for class com.google.errorprone.refaster.UAnyOf
- UClassType - Class in com.google.errorprone.refaster
-
A representation of a type with optional generic parameters.
- UClassType() - Constructor for class com.google.errorprone.refaster.UClassType
- UExpression - Class in com.google.errorprone.refaster
-
UTree
version ofExpressionTree
. - UExpression() - Constructor for class com.google.errorprone.refaster.UExpression
- UForAll - Class in com.google.errorprone.refaster
-
UType
version ofType.ForAll
. - UForAll() - Constructor for class com.google.errorprone.refaster.UForAll
- UFreeIdent - Class in com.google.errorprone.refaster
-
Free identifier that can be bound to any expression of the appropriate type.
- UFreeIdent() - Constructor for class com.google.errorprone.refaster.UFreeIdent
- UIntersectionClassType - Class in com.google.errorprone.refaster
-
UType
representation of anIntersectionClassType
. - UIntersectionClassType() - Constructor for class com.google.errorprone.refaster.UIntersectionClassType
- ULiteral - Class in com.google.errorprone.refaster
-
UTree
version ofLiteralTree
. - ULiteral() - Constructor for class com.google.errorprone.refaster.ULiteral
- UMemberSelect - Class in com.google.errorprone.refaster
-
UTree
version ofMemberSelectTree
. - UMemberSelect() - Constructor for class com.google.errorprone.refaster.UMemberSelect
- UMethodIdent - Class in com.google.errorprone.refaster
-
Identifier representing an unqualified instant method.
- UMethodIdent() - Constructor for class com.google.errorprone.refaster.UMethodIdent
- UMethodInvocation - Class in com.google.errorprone.refaster
-
UTree
version ofMethodInvocationTree
. - UMethodInvocation() - Constructor for class com.google.errorprone.refaster.UMethodInvocation
- UMethodType - Class in com.google.errorprone.refaster
-
A
UType
representation of aType.MethodType
. - UMethodType() - Constructor for class com.google.errorprone.refaster.UMethodType
- UNARY - Enum constant in enum com.google.errorprone.util.OperatorPrecedence
- UNCLASSIFIED - Enum constant in enum com.google.errorprone.bugpatterns.TypeParameterNaming.TypeParameterNamingClassification
-
Anything else.
- unconsumedStatements() - Method in class com.google.errorprone.refaster.UStatement.UnifierWithUnconsumedStatements
- UndefinedEquals - Class in com.google.errorprone.bugpatterns
-
Flags types which do not have well-defined equals behavior.
- UndefinedEquals() - Constructor for class com.google.errorprone.bugpatterns.UndefinedEquals
- UnescapedEntity - Class in com.google.errorprone.bugpatterns.javadoc
-
Finds unescaped entities in Javadocs.
- UnescapedEntity() - Constructor for class com.google.errorprone.bugpatterns.javadoc.UnescapedEntity
- UngroupedOverloads - Class in com.google.errorprone.bugpatterns
- UnicodeDirectionalityCharacters - Class in com.google.errorprone.bugpatterns
-
Bans, without the possibility of suppression, the use of direction-changing Unicode escapes.
- UnicodeDirectionalityCharacters() - Constructor for class com.google.errorprone.bugpatterns.UnicodeDirectionalityCharacters
- UnicodeEscape - Class in com.google.errorprone.bugpatterns
-
Replaces printable ASCII unicode escapes with the literal version.
- UnicodeEscape() - Constructor for class com.google.errorprone.bugpatterns.UnicodeEscape
- UnicodeInCode - Class in com.google.errorprone.bugpatterns
-
Bans using non-ASCII Unicode characters outside string literals and comments.
- UnicodeInCode() - Constructor for class com.google.errorprone.bugpatterns.UnicodeInCode
- Unifiable<T> - Interface in com.google.errorprone.refaster
-
A serializable representation of a template that can be matched against a target of type
T
. - unifications(U, T) - Static method in class com.google.errorprone.refaster.Unifier
- unifications(List<U>, List<? extends T>) - Static method in class com.google.errorprone.refaster.Unifier
- unifications(List<U>, List<? extends T>, boolean) - Static method in class com.google.errorprone.refaster.Unifier
- unifier() - Method in class com.google.errorprone.refaster.UStatement.UnifierWithUnconsumedStatements
- Unifier - Class in com.google.errorprone.refaster
-
A mutable representation of an attempt to match a template source tree against a target source tree.
- Unifier(Context) - Constructor for class com.google.errorprone.refaster.Unifier
- UnifierWithUnconsumedStatements() - Constructor for class com.google.errorprone.refaster.UStatement.UnifierWithUnconsumedStatements
- unify(Tree, Unifier) - Method in class com.google.errorprone.refaster.UTree
- unify(Type, Unifier) - Method in class com.google.errorprone.refaster.UType
- unify(JCTree.JCExpression, Unifier) - Method in class com.google.errorprone.refaster.ExpressionTemplate
- unify(Name, Unifier) - Method in class com.google.errorprone.refaster.StringName
- unify(T, Unifier) - Method in interface com.google.errorprone.refaster.Unifiable
-
Returns all valid unification paths (if any) from this
Unifier
that unify this withtarget
. - unifyList(Unifier, List<U>, List<? extends T>) - Static method in class com.google.errorprone.refaster.Unifier
-
Returns all successful unification paths from the specified
Unifier
unifying the specified lists, disallowing varargs. - unifyList(Unifier, List<U>, List<? extends T>, boolean) - Static method in class com.google.errorprone.refaster.Unifier
-
Returns all successful unification paths from the specified
Unifier
unifying the specified lists, allowing varargs if and only ifallowVarargs
is true. - unifyNullable(Unifier, U, T) - Static method in class com.google.errorprone.refaster.Unifier
- UnlockMethod - Annotation Type in com.google.errorprone.annotations.concurrent
-
Deprecated.the correctness of this annotation is not enforced; it will soon be removed.
- unmockableClass() - Method in class com.google.errorprone.bugpatterns.AbstractMockChecker.Reason
-
A Type object representing the class that should not be mocked.
- unmodifiable() - Method in class com.google.errorprone.refaster.Bindings
- UnnecessarilyFullyQualified - Class in com.google.errorprone.bugpatterns
-
Flags uses of fully qualified names which are not ambiguous if imported.
- UnnecessarilyUsedValue - Class in com.google.errorprone.bugpatterns.checkreturnvalue
-
Checker that warns when capturing the result of an ignorable API into an
unused
variable. - UnnecessarilyUsedValue() - Constructor for class com.google.errorprone.bugpatterns.checkreturnvalue.UnnecessarilyUsedValue
- UnnecessarilyVisible - Class in com.google.errorprone.bugpatterns
-
Suggests restricting the visibility of methods which should only be called by a framework.
- UnnecessarilyVisible() - Constructor for class com.google.errorprone.bugpatterns.UnnecessarilyVisible
- UnnecessaryAnonymousClass - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - UnnecessaryAnonymousClass() - Constructor for class com.google.errorprone.bugpatterns.UnnecessaryAnonymousClass
- UnnecessaryAssignment - Class in com.google.errorprone.bugpatterns
-
Discourage manual initialization or assignment to fields annotated with framework annotations.
- UnnecessaryAssignment() - Constructor for class com.google.errorprone.bugpatterns.UnnecessaryAssignment
- UnnecessaryAsync - Class in com.google.errorprone.bugpatterns
-
A BugPattern; see the summary.
- UnnecessaryAsync() - Constructor for class com.google.errorprone.bugpatterns.UnnecessaryAsync
- UnnecessaryBoxedAssignment - Class in com.google.errorprone.bugpatterns
-
Finds and fixes unnecessarily boxed return expressions.
- UnnecessaryBoxedAssignment() - Constructor for class com.google.errorprone.bugpatterns.UnnecessaryBoxedAssignment
- UnnecessaryBoxedVariable - Class in com.google.errorprone.bugpatterns
-
Finds and fixes unnecessarily boxed variables.
- UnnecessaryBoxedVariable() - Constructor for class com.google.errorprone.bugpatterns.UnnecessaryBoxedVariable
- UnnecessaryBreakInSwitch - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - UnnecessaryBreakInSwitch() - Constructor for class com.google.errorprone.bugpatterns.UnnecessaryBreakInSwitch
- UnnecessaryCheckNotNull - Class in com.google.errorprone.bugpatterns.nullness
-
Checks for unnecessarily performing null checks on expressions which can't be null.
- UnnecessaryCheckNotNull() - Constructor for class com.google.errorprone.bugpatterns.nullness.UnnecessaryCheckNotNull
- UnnecessaryDefaultInEnumSwitch - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - UnnecessaryDefaultInEnumSwitch() - Constructor for class com.google.errorprone.bugpatterns.UnnecessaryDefaultInEnumSwitch
- UnnecessaryFinal - Class in com.google.errorprone.bugpatterns
-
Removes
final
from non-field variables. - UnnecessaryFinal() - Constructor for class com.google.errorprone.bugpatterns.UnnecessaryFinal
- UnnecessaryLambda - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - UnnecessaryLambda() - Constructor for class com.google.errorprone.bugpatterns.UnnecessaryLambda
- UnnecessaryLongToIntConversion - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - UnnecessaryLongToIntConversion() - Constructor for class com.google.errorprone.bugpatterns.UnnecessaryLongToIntConversion
- UnnecessaryMethodInvocationMatcher - Class in com.google.errorprone.bugpatterns
-
Matchers.methodInvocation(Matcher)
is not exactly deprecated, but it is legacy, and in particular is not needed when the argument is a MethodMatcher, since MethodMatcher already does the unwrapping that methodInvocation does. - UnnecessaryMethodInvocationMatcher() - Constructor for class com.google.errorprone.bugpatterns.UnnecessaryMethodInvocationMatcher
- UnnecessaryMethodReference - Class in com.google.errorprone.bugpatterns
-
Matches unnecessary uses of method references.
- UnnecessaryMethodReference() - Constructor for class com.google.errorprone.bugpatterns.UnnecessaryMethodReference
- UnnecessaryOptionalGet - Class in com.google.errorprone.bugpatterns
-
A refactoring to replace Optional.get() with lambda arg in expressions passed as arg to member functions of Optionals.
- UnnecessaryOptionalGet() - Constructor for class com.google.errorprone.bugpatterns.UnnecessaryOptionalGet
- UnnecessaryParentheses - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - UnnecessaryParentheses() - Constructor for class com.google.errorprone.bugpatterns.UnnecessaryParentheses
- UnnecessarySetDefault - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - UnnecessarySetDefault() - Constructor for class com.google.errorprone.bugpatterns.UnnecessarySetDefault
- UnnecessaryStaticImport - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - UnnecessaryStaticImport() - Constructor for class com.google.errorprone.bugpatterns.UnnecessaryStaticImport
- UnnecessaryStringBuilder - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - UnnecessaryStringBuilder() - Constructor for class com.google.errorprone.bugpatterns.UnnecessaryStringBuilder
- UnnecessaryTestMethodPrefix - Class in com.google.errorprone.bugpatterns
-
See the summary.
- UnnecessaryTestMethodPrefix() - Constructor for class com.google.errorprone.bugpatterns.UnnecessaryTestMethodPrefix
- UnnecessaryTypeArgument - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - UnnecessaryTypeArgument() - Constructor for class com.google.errorprone.bugpatterns.UnnecessaryTypeArgument
- UnrecognisedJavadocTag - Class in com.google.errorprone.bugpatterns.javadoc
-
Flags tags which haven't been recognised by the Javadoc parser.
- UnrecognisedJavadocTag() - Constructor for class com.google.errorprone.bugpatterns.javadoc.UnrecognisedJavadocTag
- UnsafeFinalization - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - UnsafeFinalization() - Constructor for class com.google.errorprone.bugpatterns.UnsafeFinalization
- UnsafeLocaleUsage - Class in com.google.errorprone.bugpatterns
-
Flags unsafe usages of the
Locale
constructor and class methods. - UnsafeLocaleUsage() - Constructor for class com.google.errorprone.bugpatterns.UnsafeLocaleUsage
- UnsafeReflectiveConstructionCast - Class in com.google.errorprone.bugpatterns
-
Checks unsafe instance creation via reflection.
- UnsafeReflectiveConstructionCast() - Constructor for class com.google.errorprone.bugpatterns.UnsafeReflectiveConstructionCast
- UnsafeWildcard - Class in com.google.errorprone.bugpatterns.nullness
-
Check to detect unsafe upcasts of
null
values to wildcard types. - UnsafeWildcard() - Constructor for class com.google.errorprone.bugpatterns.nullness.UnsafeWildcard
- UNSPECIFIED - Enum constant in enum com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicy
-
It is unspecified whether the result should be used or not.
- unsupportedClasses() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiff
-
Binary names of classes only present in the new API.
- unsupportedMembersByClass() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiff
-
Members only present in the new API, grouped by binary name of their declaring class.
- UNSUPPRESSED - Enum constant in enum com.google.errorprone.SuppressionInfo.SuppressedState
- UnsynchronizedOverridesSynchronized - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - UnusedAnonymousClass - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - UnusedAnonymousClass() - Constructor for class com.google.errorprone.bugpatterns.UnusedAnonymousClass
- UnusedCollectionModifiedInPlace - Class in com.google.errorprone.bugpatterns
- UnusedCollectionModifiedInPlace() - Constructor for class com.google.errorprone.bugpatterns.UnusedCollectionModifiedInPlace
- UnusedException - Class in com.google.errorprone.bugpatterns
-
Bugpattern for catch blocks which catch an exception but throw another one without wrapping the original.
- UnusedException() - Constructor for class com.google.errorprone.bugpatterns.UnusedException
- UnusedLabel - Class in com.google.errorprone.bugpatterns
-
A BugPattern; see the summary.
- UnusedLabel() - Constructor for class com.google.errorprone.bugpatterns.UnusedLabel
- UnusedMethod - Class in com.google.errorprone.bugpatterns
-
Bugpattern to detect unused declarations.
- UnusedNestedClass - Class in com.google.errorprone.bugpatterns
-
Bugpattern to detect unused nested classes.
- UnusedNestedClass() - Constructor for class com.google.errorprone.bugpatterns.UnusedNestedClass
- UnusedReturnValueMatcher - Class in com.google.errorprone.matchers
-
Matches expressions that invoke or reference a non-void method or constructor and which do not use their return value and are not in a context where non-use of the return value is allowed.
- UnusedReturnValueMatcher.AllowReason - Enum in com.google.errorprone.matchers
-
Enumeration of known reasons that an unused return value may be allowed because of the context in which the method is used.
- UnusedTypeParameter - Class in com.google.errorprone.bugpatterns
-
A BugPattern; see the summary.
- UnusedTypeParameter() - Constructor for class com.google.errorprone.bugpatterns.UnusedTypeParameter
- UnusedVariable - Class in com.google.errorprone.bugpatterns
-
Bugpattern to detect unused declarations.
- updateAnnotationArgumentValues(AnnotationTree, VisitorState, String, Collection<String>) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Returns a fix that updates
newValues
to theparameterName
argument forannotation
, regardless of whether there is already an argument. - updateAnnotationArgumentValues(AnnotationTree, String, Collection<String>) - Static method in class com.google.errorprone.fixes.SuggestedFixes
-
Deprecated.
- UPlaceholderExpression - Class in com.google.errorprone.refaster
-
UTree
representation of an invocation of a placeholder method. - UPlaceholderExpression() - Constructor for class com.google.errorprone.refaster.UPlaceholderExpression
- UPlaceholderExpression.PlaceholderParamIdent - Class in com.google.errorprone.refaster
- UReturn - Class in com.google.errorprone.refaster
-
UTree
representation of aReturnTree
. - UReturn() - Constructor for class com.google.errorprone.refaster.UReturn
- URLEqualsHashCode - Class in com.google.errorprone.bugpatterns
-
Points out on creation of Set and HashMap of type java.net.URL.
- URLEqualsHashCode() - Constructor for class com.google.errorprone.bugpatterns.URLEqualsHashCode
- UrlInSee - Class in com.google.errorprone.bugpatterns.javadoc
-
Discourages using URLs in @see tags.
- UrlInSee() - Constructor for class com.google.errorprone.bugpatterns.javadoc.UrlInSee
- UseBinds - Class in com.google.errorprone.bugpatterns.inject.dagger
- UseBinds() - Constructor for class com.google.errorprone.bugpatterns.inject.dagger.UseBinds
- UseCorrectAssertInTests - Class in com.google.errorprone.bugpatterns
- UseCorrectAssertInTests() - Constructor for class com.google.errorprone.bugpatterns.UseCorrectAssertInTests
- UseEnumSwitch - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - UseEnumSwitch() - Constructor for class com.google.errorprone.bugpatterns.UseEnumSwitch
- UseImportPolicy - Annotation Type in com.google.errorprone.refaster.annotation
-
Annotation to indicate which import policy to use.
- UsingJsr305CheckReturnValue - Class in com.google.errorprone.bugpatterns.checkreturnvalue
-
Checker that recommends using ErrorProne's version of
@CheckReturnValue
over the version in JSR305 (which is defunct). - UsingJsr305CheckReturnValue() - Constructor for class com.google.errorprone.bugpatterns.checkreturnvalue.UsingJsr305CheckReturnValue
- UStatement - Interface in com.google.errorprone.refaster
-
UTree
representation of aStatementTree
. - UStatement.UnifierWithUnconsumedStatements - Class in com.google.errorprone.refaster
-
Tuple of a Unifier and a list of statements that are still waiting to be matched.
- UStaticIdent - Class in com.google.errorprone.refaster
-
Identifier representing a static member (field, method, etc.) on a class.
- UStaticIdent() - Constructor for class com.google.errorprone.refaster.UStaticIdent
- UTemplater - Class in com.google.errorprone.refaster
-
Converts a type-checked syntax tree to a portable
UTree
template. - UTemplater(Map<String, Symbol.VarSymbol>, Context) - Constructor for class com.google.errorprone.refaster.UTemplater
- UTree<T> - Class in com.google.errorprone.refaster
-
A serializable representation of a template syntax tree which can be unified with a target AST and inlined based on a set of substitutions.
- UTree() - Constructor for class com.google.errorprone.refaster.UTree
- UType - Class in com.google.errorprone.refaster
-
A serializable representation of a type template, used for enforcing type constraints on target ASTs.
- UType() - Constructor for class com.google.errorprone.refaster.UType
- UTypeVar - Class in com.google.errorprone.refaster
-
UType
version ofType.TypeVar
. - UTypeVar.Key - Class in com.google.errorprone.refaster
-
Bindings key linked to a
UTypeVar
. - UTypeVar.TypeWithExpression - Class in com.google.errorprone.refaster
-
Tuple of an expression with an associated type.
- UVariableDecl - Class in com.google.errorprone.refaster
-
A
UTree
representation of a local variable declaration. - UVariableDecl() - Constructor for class com.google.errorprone.refaster.UVariableDecl
V
- validate(BugPattern) - Static method in class com.google.errorprone.BugPatternValidator
- validate(ExpressionTree, List<? extends ExpressionTree>, VisitorState) - Static method in class com.google.errorprone.bugpatterns.formatstring.StrictFormatStringValidation
- validate(Symbol.MethodSymbol, Collection<? extends ExpressionTree>, VisitorState) - Static method in class com.google.errorprone.bugpatterns.formatstring.FormatStringValidation
- ValidationException - Exception Class in com.google.errorprone
-
An exception that indicates that BugPattern validation failed.
- ValidationException(String) - Constructor for exception class com.google.errorprone.ValidationException
- ValidationResult() - Constructor for class com.google.errorprone.bugpatterns.formatstring.FormatStringValidation.ValidationResult
- Validator - Class in com.google.errorprone.bugpatterns.inlineme
-
Checker that ensures the
@InlineMe
annotation is used correctly. - value() - Element in annotation type com.google.errorprone.annotations.CompatibleWith
- value() - Element in annotation type com.google.errorprone.annotations.concurrent.GuardedBy
-
The lock that should be held, specified in the format given in the documentation for the corresponding Error Prone check.
- value() - Element in annotation type com.google.errorprone.annotations.concurrent.LockMethod
-
Deprecated.
- value() - Element in annotation type com.google.errorprone.annotations.concurrent.UnlockMethod
-
Deprecated.
- value() - Element in annotation type com.google.errorprone.annotations.DoNotCall
-
An optional explanation of why the method should not be called.
- value() - Element in annotation type com.google.errorprone.annotations.DoNotMock
-
The reason why the annotated type should not be mocked.
- value() - Element in annotation type com.google.errorprone.annotations.IncompatibleModifiers
-
Deprecated.use
IncompatibleModifiers.modifier()
instead - value() - Element in annotation type com.google.errorprone.annotations.InlineMeValidationDisabled
-
An explanation as to why the validation is disabled (e.g.: moving from a constructor to a static factory method that delegates to this constructor, which is behavior-perserving, but isn't strictly an inlining).
- value() - Element in annotation type com.google.errorprone.annotations.RequiredModifiers
-
Deprecated.use
RequiredModifiers.modifier()
instead - value() - Element in annotation type com.google.errorprone.refaster.annotation.Matches
- value() - Element in annotation type com.google.errorprone.refaster.annotation.NotMatches
- value() - Element in annotation type com.google.errorprone.refaster.annotation.OfKind
- value() - Element in annotation type com.google.errorprone.refaster.annotation.RequiredAnnotation
- value() - Element in annotation type com.google.errorprone.refaster.annotation.UseImportPolicy
- valueOf(int) - Static method in enum com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.DiffCase
-
Deprecated.
- valueOf(String) - Static method in enum com.google.errorprone.annotations.Modifier
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.errorprone.BugCheckerRefactoringTestHelper.FixChoosers
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.errorprone.BugCheckerRefactoringTestHelper.TestMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.errorprone.BugPattern.LinkType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.errorprone.BugPattern.SeverityLevel
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.DiffCase
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicy
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicyEvaluator.MethodInfo.MethodKind
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule.RuleScope
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions.ConstantExpression.ConstantExpressionKind
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.Kind
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Purpose
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.errorprone.bugpatterns.TypeParameterNaming.TypeParameterNamingClassification
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.errorprone.bugpatterns.TypesWithUndefinedEquality
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.errorprone.dataflow.nullnesspropagation.Nullness
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.errorprone.ErrorProneOptions.Severity
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.errorprone.fixes.Replacements.CoalescePolicy
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.errorprone.fixes.SuggestedFixes.AdditionPosition
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.errorprone.matchers.ChildMultiMatcher.MatchType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.errorprone.matchers.method.MethodInvocationMatcher.MethodKind
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.errorprone.matchers.method.MethodInvocationMatcher.TokenType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.errorprone.matchers.MethodVisibility.Visibility
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.errorprone.matchers.UnusedReturnValueMatcher.AllowReason
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.errorprone.predicates.type.Array
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.errorprone.refaster.ControlFlowVisitor.Result
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.errorprone.refaster.ImportPolicy
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.errorprone.SuppressionInfo.SuppressedState
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.errorprone.util.Commented.Position
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.errorprone.util.ErrorProneComment.ErrorProneCommentStyle
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.errorprone.util.OperatorPrecedence
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.google.errorprone.util.Visibility
-
Returns the enum constant of this type with the specified name.
- valueOfAccessPath(AccessPath, T) - Method in interface com.google.errorprone.dataflow.AccessPathValues
- valueOfAccessPath(AccessPath, V) - Method in class com.google.errorprone.dataflow.AccessPathStore
- values() - Static method in enum com.google.errorprone.annotations.Modifier
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.errorprone.BugCheckerRefactoringTestHelper.FixChoosers
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.errorprone.BugCheckerRefactoringTestHelper.TestMode
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.errorprone.BugPattern.LinkType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.errorprone.BugPattern.SeverityLevel
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.DiffCase
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicy
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicyEvaluator.MethodInfo.MethodKind
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule.RuleScope
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions.ConstantExpression.ConstantExpressionKind
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.Kind
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Purpose
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.errorprone.bugpatterns.TypeParameterNaming.TypeParameterNamingClassification
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.errorprone.bugpatterns.TypesWithUndefinedEquality
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.errorprone.dataflow.nullnesspropagation.Nullness
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.errorprone.ErrorProneOptions.Severity
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.errorprone.fixes.Replacements.CoalescePolicy
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.errorprone.fixes.SuggestedFixes.AdditionPosition
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.errorprone.matchers.ChildMultiMatcher.MatchType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.errorprone.matchers.method.MethodInvocationMatcher.MethodKind
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.errorprone.matchers.method.MethodInvocationMatcher.TokenType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.errorprone.matchers.MethodVisibility.Visibility
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.errorprone.matchers.UnusedReturnValueMatcher.AllowReason
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.errorprone.predicates.type.Array
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.errorprone.refaster.ControlFlowVisitor.Result
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.errorprone.refaster.ImportPolicy
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.errorprone.SuppressionInfo.SuppressedState
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.errorprone.util.Commented.Position
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.errorprone.util.ErrorProneComment.ErrorProneCommentStyle
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.errorprone.util.OperatorPrecedence
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.google.errorprone.util.Visibility
-
Returns an array containing the constants of this enum type, in the order they are declared.
- Var - Annotation Type in com.google.errorprone.annotations
-
The parameter or local variable to which this annotation is applied is non-final.
- VarChecker - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - VarChecker() - Constructor for class com.google.errorprone.bugpatterns.VarChecker
- variableInitializer(Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches on the initializer of a VariableTree AST node.
- variableIsStaticFinal(Symbol.VarSymbol) - Static method in class com.google.errorprone.util.ASTHelpers
-
Whether the variable is (or should be regarded as) static final.
- VariableNameSameAsType - Class in com.google.errorprone.bugpatterns
-
Check for variables and types with the same name
- VariableNameSameAsType() - Constructor for class com.google.errorprone.bugpatterns.VariableNameSameAsType
- variableType(Matcher<Tree>) - Static method in class com.google.errorprone.matchers.Matchers
-
Matches on the type of a VariableTree AST node.
- Varifier - Class in com.google.errorprone.bugpatterns
-
Converts some local variables to use
var
. - Varifier() - Constructor for class com.google.errorprone.bugpatterns.Varifier
- VarTypeName - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - VarTypeName() - Constructor for class com.google.errorprone.bugpatterns.VarTypeName
- Violation() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Violation
- Visibility - Enum in com.google.errorprone.util
-
Describes visibilities available via VisibleForTesting annotations, and provides methods to establish whether a given
Tree
should be visible. - visitAnnotatedType(AnnotatedTypeTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitAnnotatedType(AnnotatedTypeTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitAnnotation(AnnotationTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitAnnotation(AnnotationTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitAnnotation(JCTree.JCAnnotation) - Method in class com.google.errorprone.bugpatterns.CanBeStaticAnalyzer
- visitArrayAccess(ArrayAccessTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitArrayAccess(ArrayAccessTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitArrayType(ArrayTypeTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitArrayType(ArrayTypeTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitAssert(AssertTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitAssert(AssertTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitAssignment(AssignmentTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitAssignment(AssignmentTree, Void) - Method in class com.google.errorprone.dataflow.nullnesspropagation.inference.NullnessQualifierInference
- visitAssignment(AssignmentTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitBinary(BinaryTree, SuggestedFix.Builder) - Method in class com.google.errorprone.bugpatterns.ShortCircuitBoolean.TreeScannerBinary
- visitBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitBinary(BinaryTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitBlock(BlockTree, ControlFlowVisitor.BreakContext) - Method in class com.google.errorprone.refaster.ControlFlowVisitor
- visitBlock(BlockTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitBlock(BlockTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitBreak(BreakTree, ControlFlowVisitor.BreakContext) - Method in class com.google.errorprone.refaster.ControlFlowVisitor
- visitBreak(BreakTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitBreak(BreakTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitCase(CaseTree, ControlFlowVisitor.BreakContext) - Method in class com.google.errorprone.refaster.ControlFlowVisitor
- visitCase(CaseTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitCatch(CatchTree, ControlFlowVisitor.BreakContext) - Method in class com.google.errorprone.refaster.ControlFlowVisitor
- visitCatch(CatchTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitCatch(CatchTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitClass(ClassTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitClass(ClassTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitClass(ClassTree, Void) - Method in class com.google.errorprone.util.ASTHelpers.ScanThrownTypes
- visitClassType(Type.ClassType, Unifier) - Method in class com.google.errorprone.refaster.UClassType
- visitClassType(Type.ClassType, Unifier) - Method in class com.google.errorprone.refaster.UIntersectionClassType
- visitCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitCompoundAssignment(CompoundAssignmentTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitCompoundAssignment(CompoundAssignmentTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitCompoundAssignment(CompoundAssignmentTree, Void) - Method in class com.google.errorprone.util.SideEffectAnalysis
- visitConditionalExpression(ConditionalExpressionTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitConditionalExpression(ConditionalExpressionTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitConstant(Object) - Method in interface com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions.ConstantExpressionVisitor
- visitContinue(ContinueTree, ControlFlowVisitor.BreakContext) - Method in class com.google.errorprone.refaster.ControlFlowVisitor
- visitContinue(ContinueTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitContinue(ContinueTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitDoWhileLoop(DoWhileLoopTree, ControlFlowVisitor.BreakContext) - Method in class com.google.errorprone.refaster.ControlFlowVisitor
- visitDoWhileLoop(DoWhileLoopTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitDoWhileLoop(DoWhileLoopTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitEmptyStatement(EmptyStatementTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitEmptyStatement(EmptyStatementTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitEnhancedForLoop(EnhancedForLoopTree, ControlFlowVisitor.BreakContext) - Method in class com.google.errorprone.refaster.ControlFlowVisitor
- visitEnhancedForLoop(EnhancedForLoopTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitEnhancedForLoop(EnhancedForLoopTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitExpressionStatement(ExpressionStatementTree, ControlFlowVisitor.BreakContext) - Method in class com.google.errorprone.refaster.ControlFlowVisitor
- visitExpressionStatement(ExpressionStatementTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitExpressionStatement(ExpressionStatementTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitForAll(Type.ForAll, Unifier) - Method in class com.google.errorprone.refaster.UForAll
- visitForLoop(ForLoopTree, ControlFlowVisitor.BreakContext) - Method in class com.google.errorprone.refaster.ControlFlowVisitor
- visitForLoop(ForLoopTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitForLoop(ForLoopTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitIdent(JCTree.JCIdent) - Method in class com.google.errorprone.bugpatterns.CanBeStaticAnalyzer
- visitIdentifier(IdentifierTree, Unifier) - Method in class com.google.errorprone.refaster.UFreeIdent
- visitIdentifier(IdentifierTree, Unifier) - Method in class com.google.errorprone.refaster.UMemberSelect
- visitIdentifier(IdentifierTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitIdentifier(IdentifierTree, Void) - Method in class com.google.errorprone.dataflow.nullnesspropagation.inference.NullnessQualifierInference
- visitIdentifier(IdentifierTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitIdentifier(Symbol) - Method in interface com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions.ConstantExpressionVisitor
- visitIf(IfTree, ControlFlowVisitor.BreakContext) - Method in class com.google.errorprone.refaster.ControlFlowVisitor
- visitIf(IfTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitIf(IfTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitImport(ImportTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitInstanceOf(InstanceOfTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitInstanceOf(InstanceOfTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitIntersectionType(IntersectionTypeTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitIntersectionType(IntersectionTypeTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitLabeledStatement(LabeledStatementTree, ControlFlowVisitor.BreakContext) - Method in class com.google.errorprone.refaster.ControlFlowVisitor
- visitLabeledStatement(LabeledStatementTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitLabeledStatement(LabeledStatementTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitLambdaExpression(LambdaExpressionTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitLambdaExpression(LambdaExpressionTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitLambdaExpression(LambdaExpressionTree, Void) - Method in class com.google.errorprone.util.ASTHelpers.ScanThrownTypes
- visitLiteral(LiteralTree, Unifier) - Method in class com.google.errorprone.refaster.ULiteral
- visitLiteral(LiteralTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitLiteral(LiteralTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitMemberReference(MemberReferenceTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitMemberReference(MemberReferenceTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitMemberSelect(MemberSelectTree, Unifier) - Method in class com.google.errorprone.refaster.UMemberSelect
- visitMemberSelect(MemberSelectTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitMemberSelect(MemberSelectTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitMethod(MethodTree, Void) - Method in class com.google.errorprone.refaster.RefasterRuleBuilderScanner
- visitMethod(MethodTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitMethod(MethodTree, Void) - Method in class com.google.errorprone.util.ASTHelpers.ScanThrownTypes
- visitMethodInvocation(MethodInvocationTree, Unifier) - Method in class com.google.errorprone.refaster.UMethodInvocation
- visitMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitMethodInvocation(MethodInvocationTree, Void) - Method in class com.google.errorprone.dataflow.nullnesspropagation.inference.NullnessQualifierInference
- visitMethodInvocation(MethodInvocationTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitMethodInvocation(MethodInvocationTree, Void) - Method in class com.google.errorprone.util.ASTHelpers.ScanThrownTypes
- visitMethodInvocation(MethodInvocationTree, Void) - Method in class com.google.errorprone.util.SideEffectAnalysis
- visitMethodType(Type.MethodType, Unifier) - Method in class com.google.errorprone.refaster.UMethodType
- visitModifiers(ModifiersTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitModifiers(ModifiersTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitNewArray(NewArrayTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitNewArray(NewArrayTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitNewClass(NewClassTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitNewClass(NewClassTree, Void) - Method in class com.google.errorprone.util.ASTHelpers.ScanThrownTypes
- visitNewClass(NewClassTree, Void) - Method in class com.google.errorprone.util.SideEffectAnalysis
- visitNewClass(JCTree.JCNewClass) - Method in class com.google.errorprone.bugpatterns.CanBeStaticAnalyzer
- visitorState() - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedBySymbolResolver
- VisitorState - Class in com.google.errorprone
- VisitorState(Context) - Constructor for class com.google.errorprone.VisitorState
-
Deprecated.If VisitorState is needed, use
VisitorState.createForUtilityPurposes(com.sun.tools.javac.util.Context)
, otherwise just use utility methods in ASTHelpers that don't need VisitorSate. - VisitorState(Context, DescriptionListener) - Constructor for class com.google.errorprone.VisitorState
-
Deprecated.Use the equivalent factory method
VisitorState.createForCustomFindingCollection(com.sun.tools.javac.util.Context, com.google.errorprone.DescriptionListener)
. - VisitorState(Context, DescriptionListener, Map<String, BugPattern.SeverityLevel>, ErrorProneOptions) - Constructor for class com.google.errorprone.VisitorState
- visitParameterizedType(ParameterizedTypeTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitParameterizedType(ParameterizedTypeTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitParenthesized(ParenthesizedTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitParenthesized(ParenthesizedTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitPrimitiveType(PrimitiveTypeTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitPrimitiveType(PrimitiveTypeTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitReference(JCTree.JCMemberReference) - Method in class com.google.errorprone.bugpatterns.CanBeStaticAnalyzer
- visitReturn(ReturnTree, Unifier) - Method in class com.google.errorprone.refaster.UReturn
- visitReturn(ReturnTree, ControlFlowVisitor.BreakContext) - Method in class com.google.errorprone.refaster.ControlFlowVisitor
- visitReturn(ReturnTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitReturn(ReturnTree, Void) - Method in class com.google.errorprone.dataflow.nullnesspropagation.inference.NullnessQualifierInference
- visitReturn(ReturnTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitSelect(JCTree.JCFieldAccess) - Method in class com.google.errorprone.bugpatterns.CanBeStaticAnalyzer
- visitStatement(StatementTree) - Method in class com.google.errorprone.refaster.ControlFlowVisitor
- visitStatements(Iterable<? extends StatementTree>) - Method in class com.google.errorprone.refaster.ControlFlowVisitor
- visitSwitch(SwitchTree, ControlFlowVisitor.BreakContext) - Method in class com.google.errorprone.refaster.ControlFlowVisitor
- visitSwitch(SwitchTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitSynchronized(SynchronizedTree, ControlFlowVisitor.BreakContext) - Method in class com.google.errorprone.refaster.ControlFlowVisitor
- visitSynchronized(SynchronizedTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitSynchronized(SynchronizedTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitThrow(ThrowTree, ControlFlowVisitor.BreakContext) - Method in class com.google.errorprone.refaster.ControlFlowVisitor
- visitThrow(ThrowTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitThrow(ThrowTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitThrow(ThrowTree, Void) - Method in class com.google.errorprone.util.ASTHelpers.ScanThrownTypes
- visitTry(TryTree, ControlFlowVisitor.BreakContext) - Method in class com.google.errorprone.refaster.ControlFlowVisitor
- visitTry(TryTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitTry(TryTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitTry(TryTree, Void) - Method in class com.google.errorprone.util.ASTHelpers.ScanThrownTypes
- visitType(Type, Unifier) - Method in class com.google.errorprone.refaster.UType
- visitType(Type, Unifier) - Method in class com.google.errorprone.refaster.UTypeVar
- visitTypeCast(TypeCastTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitTypeCast(TypeCastTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitTypeParameter(TypeParameterTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitTypeParameter(TypeParameterTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitUnary(UnaryTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitUnary(UnaryTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitUnary(UnaryTree, Void) - Method in class com.google.errorprone.util.SideEffectAnalysis
- visitUnionType(UnionTypeTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitUnionType(UnionTypeTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitVariable(VariableTree, Unifier) - Method in class com.google.errorprone.refaster.UVariableDecl
- visitVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitVariable(VariableTree, Void) - Method in class com.google.errorprone.dataflow.nullnesspropagation.inference.NullnessQualifierInference
- visitVariable(VariableTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitVariable(VariableTree, Void) - Method in class com.google.errorprone.util.ASTHelpers.ScanThrownTypes
- visitWhileLoop(WhileLoopTree, ControlFlowVisitor.BreakContext) - Method in class com.google.errorprone.refaster.ControlFlowVisitor
- visitWhileLoop(WhileLoopTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitWhileLoop(WhileLoopTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visitWildcard(WildcardTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
- visitWildcard(WildcardTree, Void) - Method in class com.google.errorprone.refaster.UTemplater
- visualize(CFGVisualizer<?, AccessPathStore<V>, ?>) - Method in class com.google.errorprone.dataflow.AccessPathStore
- VOID_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
- VoidMissingNullable - Class in com.google.errorprone.bugpatterns.nullness
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - VoidUsed - Class in com.google.errorprone.bugpatterns
-
A BugPattern; see the summary.
- VoidUsed() - Constructor for class com.google.errorprone.bugpatterns.VoidUsed
- VOLATILE - Enum constant in enum com.google.errorprone.annotations.Modifier
W
- WaitMatchers - Class in com.google.errorprone.matchers
-
Matchers for method invocations related to Object.wait() and Condition.await();
- waitMethod - Static variable in class com.google.errorprone.matchers.WaitMatchers
-
Matches any wait/await method.
- waitMethodWithTimeout - Static variable in class com.google.errorprone.matchers.WaitMatchers
-
Matches wait/await methods that have a timeout.
- WaitNotInLoop - Class in com.google.errorprone.bugpatterns
- WaitNotInLoop() - Constructor for class com.google.errorprone.bugpatterns.WaitNotInLoop
- WakelockReleasedDangerously - Class in com.google.errorprone.bugpatterns.android
- WakelockReleasedDangerously() - Constructor for class com.google.errorprone.bugpatterns.android.WakelockReleasedDangerously
- WARN - Enum constant in enum com.google.errorprone.ErrorProneOptions.Severity
- WARNING - Enum constant in enum com.google.errorprone.BugPattern.SeverityLevel
- warningChecks() - Static method in class com.google.errorprone.scanner.BuiltInCheckerSuppliers
-
Returns a
ScannerSupplier
with theBugChecker
s that are in the ENABLED_WARNINGS list. - WellKnownMutability - Class in com.google.errorprone.bugpatterns.threadsafety
-
A collection of types with known mutability.
- WellKnownThreadSafety - Class in com.google.errorprone.bugpatterns.threadsafety
-
A collection of types with known thread safety.
- widenedUpperBound(AccessPathStore<V>) - Method in class com.google.errorprone.dataflow.AccessPathStore
- WildcardImport - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - WildcardImport() - Constructor for class com.google.errorprone.bugpatterns.WildcardImport
- withAnyName() - Method in interface com.google.errorprone.matchers.method.MethodMatchers.MethodClassMatcher
-
Deprecated.Match methods with any name.
- withClasspath(Class<?>...) - Method in class com.google.errorprone.CompilationTestHelper
-
Sets the classpath for the test compilation, overriding the default of using the runtime classpath of the test execution.
- withCustomDefaultSeverity(BugPattern.SeverityLevel) - Method in class com.google.errorprone.BugCheckerInfo
- withExtendedSuppressions(Symbol, VisitorState, Set<? extends Name>) - Method in class com.google.errorprone.SuppressionInfo
-
Returns an instance of
SuppressionInfo
that takes into account any suppression signals present onsym
as well as those already stored inthis
. - withNameMatching(Pattern) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.MethodClassMatcher
-
Deprecated.Match methods with a name that matches the given regular expression.
- withNoParameters() - Method in interface com.google.errorprone.matchers.method.MethodMatchers.ConstructorClassMatcher
-
Deprecated.Match constructors with no formal parameters.
- withNoParameters() - Method in interface com.google.errorprone.matchers.method.MethodMatchers.MethodNameMatcher
-
Deprecated.Match methods with no formal parameters.
- withOffset(int) - Method in class com.google.errorprone.util.ErrorProneComment
- withParameters(Iterable<String>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.ConstructorClassMatcher
-
Deprecated.Match constructors whose formal parameters have the given types.
- withParameters(Iterable<String>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.MethodNameMatcher
-
Deprecated.Match methods whose formal parameters have the given types.
- withParameters(String, String...) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.ConstructorClassMatcher
-
Deprecated.Match constructors whose formal parameters have the given types.
- withParameters(String, String...) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.MethodNameMatcher
-
Deprecated.Match methods whose formal parameters have the given types.
- withParametersOfType(Iterable<Supplier<Type>>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.ConstructorClassMatcher
-
Deprecated.Match constructors whose formal parameters have the given types.
- withParametersOfType(Iterable<Supplier<Type>>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.MethodNameMatcher
-
Deprecated.Match constructors whose formal parameters have the given types.
- withPath(TreePath) - Method in class com.google.errorprone.VisitorState
- withSignature(String) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.MethodClassMatcher
-
Deprecated.The implementation uses javac internals to pretty-print the signatures, and the signature format is not well-specified.
- WithSignatureDiscouraged - Class in com.google.errorprone.bugpatterns
-
MethodMatchers.MethodClassMatcher.withSignature(String)
is discouraged: most usages should use .named and/or .withParameters instead. - WithSignatureDiscouraged() - Constructor for class com.google.errorprone.bugpatterns.WithSignatureDiscouraged
- withStatements(Iterable<? extends UStatement>) - Method in class com.google.errorprone.refaster.BlockTemplate
- withSuppression(SuppressionInfo.SuppressedState) - Method in class com.google.errorprone.VisitorState
- wouldRunInJUnit4 - Static variable in class com.google.errorprone.matchers.JUnitMatchers
-
Matches a method annotated with @Test but not @Ignore.
- writeFile(SourceFile) - Method in class com.google.errorprone.apply.DiscardingFileDestination
- writeFile(SourceFile) - Method in interface com.google.errorprone.apply.FileDestination
- writeFile(SourceFile) - Method in class com.google.errorprone.apply.FsFileDestination
- writeFile(SourceFile) - Method in class com.google.errorprone.apply.PatchFileDestination
- writeTo(CodedOutputStream) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
- writeTo(CodedOutputStream) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
- writeTo(CodedOutputStream) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
- writeTo(CodedOutputStream) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
- writeTo(CodedOutputStream) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
- WrongOneof - Class in com.google.errorprone.bugpatterns
-
Matches always-default expressions in oneof switches.
X
- XOR - Enum constant in enum com.google.errorprone.util.OperatorPrecedence
- XorPower - Class in com.google.errorprone.bugpatterns
-
A
BugChecker
; see the associatedBugPattern
annotation for details. - XorPower() - Constructor for class com.google.errorprone.bugpatterns.XorPower
Y
- YodaCondition - Class in com.google.errorprone.bugpatterns
-
See the summary.
- YodaCondition() - Constructor for class com.google.errorprone.bugpatterns.YodaCondition
Z
- ZoneIdOfZ - Class in com.google.errorprone.bugpatterns.time
-
This checker bans calls to
ZoneId.of("Z")
in favor ofZoneOffset.UTC
. - ZoneIdOfZ() - Constructor for class com.google.errorprone.bugpatterns.time.ZoneIdOfZ
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
SuggestedFix.emptyFix()
.