diff --git a/api/latest/com/google/errorprone/bugpatterns/BugChecker.ConditionalExpressionTreeMatcher.html b/api/latest/com/google/errorprone/bugpatterns/BugChecker.ConditionalExpressionTreeMatcher.html index a7d82677ca4..e44ed871563 100644 --- a/api/latest/com/google/errorprone/bugpatterns/BugChecker.ConditionalExpressionTreeMatcher.html +++ b/api/latest/com/google/errorprone/bugpatterns/BugChecker.ConditionalExpressionTreeMatcher.html @@ -79,7 +79,7 @@
ConditionalExpressionNumericPromotion
, NullTernary
, UnsafeWildcard
ConditionalExpressionNumericPromotion
, NullTernary
, OperatorPrecedence
, UnsafeWildcard
BugChecker.BinaryTreeMatcher
, Suppressible
, Serializable
BugChecker.BinaryTreeMatcher
, BugChecker.ConditionalExpressionTreeMatcher
, Suppressible
, Serializable
BugChecker
; see the associated BugPattern
annotation for details.matchBinary(com.sun.source.tree.BinaryTree tree,
VisitorState state)
matchConditionalExpression(com.sun.source.tree.ConditionalExpressionTree tree,
+ VisitorState state)
matchConditionalExpression
in interface BugChecker.ConditionalExpressionTreeMatcher
BugChecker
; see the associated BugPattern
annotation for details.class
BugChecker
; see the associated BugPattern
annotation for details.matchContinue(com.sun.source.tree.ContinueTree tree,
+OperatorPrecedence.matchConditionalExpression(com.sun.source.tree.ConditionalExpressionTree tree,
VisitorState state)
-Finally.matchContinue(com.sun.source.tree.ContinueTree tree,
+BugChecker.ContinueTreeMatcher.matchContinue(com.sun.source.tree.ContinueTree tree,
VisitorState state)
-BugChecker.DoWhileLoopTreeMatcher.matchDoWhileLoop(com.sun.source.tree.DoWhileLoopTree tree,
+Finally.matchContinue(com.sun.source.tree.ContinueTree tree,
VisitorState state)
-LogicalAssignment.matchDoWhileLoop(com.sun.source.tree.DoWhileLoopTree tree,
+BugChecker.DoWhileLoopTreeMatcher.matchDoWhileLoop(com.sun.source.tree.DoWhileLoopTree tree,
VisitorState state)
-LoopConditionChecker.matchDoWhileLoop(com.sun.source.tree.DoWhileLoopTree tree,
+LogicalAssignment.matchDoWhileLoop(com.sun.source.tree.DoWhileLoopTree tree,
VisitorState state)
-MissingBraces.matchDoWhileLoop(com.sun.source.tree.DoWhileLoopTree tree,
+LoopConditionChecker.matchDoWhileLoop(com.sun.source.tree.DoWhileLoopTree tree,
VisitorState state)
-BugChecker.EmptyStatementTreeMatcher.matchEmptyStatement(com.sun.source.tree.EmptyStatementTree tree,
+MissingBraces.matchDoWhileLoop(com.sun.source.tree.DoWhileLoopTree tree,
VisitorState state)
-EmptyIfStatement.matchEmptyStatement(com.sun.source.tree.EmptyStatementTree tree,
+BugChecker.EmptyStatementTreeMatcher.matchEmptyStatement(com.sun.source.tree.EmptyStatementTree tree,
VisitorState state)
-
+
+
+EmptyIfStatement.matchEmptyStatement(com.sun.source.tree.EmptyStatementTree tree,
+ VisitorState state)
+
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
-
-BugChecker.EnhancedForLoopTreeMatcher.matchEnhancedForLoop(com.sun.source.tree.EnhancedForLoopTree tree,
- VisitorState state)
-
-LoopOverCharArray.matchEnhancedForLoop(com.sun.source.tree.EnhancedForLoopTree tree,
+BugChecker.EnhancedForLoopTreeMatcher.matchEnhancedForLoop(com.sun.source.tree.EnhancedForLoopTree tree,
VisitorState state)
-MissingBraces.matchEnhancedForLoop(com.sun.source.tree.EnhancedForLoopTree tree,
+LoopOverCharArray.matchEnhancedForLoop(com.sun.source.tree.EnhancedForLoopTree tree,
VisitorState state)
-NoAllocationChecker.matchEnhancedForLoop(com.sun.source.tree.EnhancedForLoopTree tree,
+MissingBraces.matchEnhancedForLoop(com.sun.source.tree.EnhancedForLoopTree tree,
VisitorState state)
-boolean
-TypesWithUndefinedEquality.matchesType(com.sun.tools.javac.code.Type type,
+
+NoAllocationChecker.matchEnhancedForLoop(com.sun.source.tree.EnhancedForLoopTree tree,
VisitorState state)
-
-BugChecker.ExpressionStatementTreeMatcher.matchExpressionStatement(com.sun.source.tree.ExpressionStatementTree tree,
+boolean
+TypesWithUndefinedEquality.matchesType(com.sun.tools.javac.code.Type type,
VisitorState state)
-ModifiedButNotUsed.matchExpressionStatement(com.sun.source.tree.ExpressionStatementTree tree,
+BugChecker.ExpressionStatementTreeMatcher.matchExpressionStatement(com.sun.source.tree.ExpressionStatementTree tree,
VisitorState state)
-BugChecker.ForLoopTreeMatcher.matchForLoop(com.sun.source.tree.ForLoopTree tree,
+ModifiedButNotUsed.matchExpressionStatement(com.sun.source.tree.ExpressionStatementTree tree,
VisitorState state)
-IncrementInForLoopAndHeader.matchForLoop(com.sun.source.tree.ForLoopTree forLoopTree,
- VisitorState visitorState)
+BugChecker.ForLoopTreeMatcher.matchForLoop(com.sun.source.tree.ForLoopTree tree,
+ VisitorState state)
-LogicalAssignment.matchForLoop(com.sun.source.tree.ForLoopTree tree,
- VisitorState state)
+IncrementInForLoopAndHeader.matchForLoop(com.sun.source.tree.ForLoopTree forLoopTree,
+ VisitorState visitorState)
-LoopConditionChecker.matchForLoop(com.sun.source.tree.ForLoopTree tree,
+LogicalAssignment.matchForLoop(com.sun.source.tree.ForLoopTree tree,
VisitorState state)
-MissingBraces.matchForLoop(com.sun.source.tree.ForLoopTree tree,
+LoopConditionChecker.matchForLoop(com.sun.source.tree.ForLoopTree tree,
VisitorState state)
-protected <T extends com.sun.source.tree.Tree>
Description
-AbstractBanUnsafeAPIChecker.matchHelper(T tree,
+
+MissingBraces.matchForLoop(com.sun.source.tree.ForLoopTree tree,
+ VisitorState state)
+
+protected <T extends com.sun.source.tree.Tree>
Description
+AbstractBanUnsafeAPIChecker.matchHelper(T tree,
VisitorState state,
Matcher<T> matcher)
-
-
-BugChecker.IdentifierTreeMatcher.matchIdentifier(com.sun.source.tree.IdentifierTree tree,
- VisitorState state)
-AbstractUseSwitch.matchIf(com.sun.source.tree.IfTree tree,
+BugChecker.IdentifierTreeMatcher.matchIdentifier(com.sun.source.tree.IdentifierTree tree,
VisitorState state)
-BugChecker.IfTreeMatcher.matchIf(com.sun.source.tree.IfTree tree,
+AbstractUseSwitch.matchIf(com.sun.source.tree.IfTree tree,
VisitorState state)
-ImplementAssertionWithChaining.matchIf(com.sun.source.tree.IfTree ifTree,
+BugChecker.IfTreeMatcher.matchIf(com.sun.source.tree.IfTree tree,
VisitorState state)
-LogicalAssignment.matchIf(com.sun.source.tree.IfTree tree,
+ImplementAssertionWithChaining.matchIf(com.sun.source.tree.IfTree ifTree,
VisitorState state)
-MissingBraces.matchIf(com.sun.source.tree.IfTree tree,
+LogicalAssignment.matchIf(com.sun.source.tree.IfTree tree,
VisitorState state)
-NestedInstanceOfConditions.matchIf(com.sun.source.tree.IfTree ifTree,
- VisitorState visitorState)
+MissingBraces.matchIf(com.sun.source.tree.IfTree tree,
+ VisitorState state)
-BadImport.matchImport(com.sun.source.tree.ImportTree tree,
- VisitorState state)
+NestedInstanceOfConditions.matchIf(com.sun.source.tree.IfTree ifTree,
+ VisitorState visitorState)
-BugChecker.ImportTreeMatcher.matchImport(com.sun.source.tree.ImportTree tree,
+BadImport.matchImport(com.sun.source.tree.ImportTree tree,
VisitorState state)
-NonCanonicalStaticImport.matchImport(com.sun.source.tree.ImportTree tree,
+BugChecker.ImportTreeMatcher.matchImport(com.sun.source.tree.ImportTree tree,
VisitorState state)
-NonCanonicalStaticMemberImport.matchImport(com.sun.source.tree.ImportTree tree,
+NonCanonicalStaticImport.matchImport(com.sun.source.tree.ImportTree tree,
VisitorState state)
-UnnecessaryStaticImport.matchImport(com.sun.source.tree.ImportTree tree,
+NonCanonicalStaticMemberImport.matchImport(com.sun.source.tree.ImportTree tree,
VisitorState state)
-BadInstanceof.matchInstanceOf(com.sun.source.tree.InstanceOfTree tree,
+UnnecessaryStaticImport.matchImport(com.sun.source.tree.ImportTree tree,
VisitorState state)
-BugChecker.InstanceOfTreeMatcher.matchInstanceOf(com.sun.source.tree.InstanceOfTree tree,
+BadInstanceof.matchInstanceOf(com.sun.source.tree.InstanceOfTree tree,
VisitorState state)
-BugChecker.IntersectionTypeTreeMatcher.matchIntersectionType(com.sun.source.tree.IntersectionTypeTree tree,
+BugChecker.InstanceOfTreeMatcher.matchInstanceOf(com.sun.source.tree.InstanceOfTree tree,
VisitorState state)
-BugChecker.LabeledStatementTreeMatcher.matchLabeledStatement(com.sun.source.tree.LabeledStatementTree tree,
+BugChecker.IntersectionTypeTreeMatcher.matchIntersectionType(com.sun.source.tree.IntersectionTypeTree tree,
VisitorState state)
-LabelledBreakTarget.matchLabeledStatement(com.sun.source.tree.LabeledStatementTree tree,
+BugChecker.LabeledStatementTreeMatcher.matchLabeledStatement(com.sun.source.tree.LabeledStatementTree tree,
VisitorState state)
-BugChecker.LambdaExpressionTreeMatcher.matchLambdaExpression(com.sun.source.tree.LambdaExpressionTree tree,
+LabelledBreakTarget.matchLabeledStatement(com.sun.source.tree.LabeledStatementTree tree,
VisitorState state)
-CompileTimeConstantChecker.matchLambdaExpression(com.sun.source.tree.LambdaExpressionTree node,
+BugChecker.LambdaExpressionTreeMatcher.matchLambdaExpression(com.sun.source.tree.LambdaExpressionTree tree,
VisitorState state)
-StreamToIterable.matchLambdaExpression(com.sun.source.tree.LambdaExpressionTree tree,
+CompileTimeConstantChecker.matchLambdaExpression(com.sun.source.tree.LambdaExpressionTree node,
VisitorState state)
-BugChecker.LiteralTreeMatcher.matchLiteral(com.sun.source.tree.LiteralTree tree,
+StreamToIterable.matchLambdaExpression(com.sun.source.tree.LambdaExpressionTree tree,
VisitorState state)
-DangerousLiteralNullChecker.matchLiteral(com.sun.source.tree.LiteralTree tree,
+BugChecker.LiteralTreeMatcher.matchLiteral(com.sun.source.tree.LiteralTree tree,
VisitorState state)
-FloatingPointLiteralPrecision.matchLiteral(com.sun.source.tree.LiteralTree tree,
+DangerousLiteralNullChecker.matchLiteral(com.sun.source.tree.LiteralTree tree,
VisitorState state)
-LongLiteralLowerCaseSuffix.matchLiteral(com.sun.source.tree.LiteralTree literalTree,
+FloatingPointLiteralPrecision.matchLiteral(com.sun.source.tree.LiteralTree tree,
VisitorState state)
-OrphanedFormatString.matchLiteral(com.sun.source.tree.LiteralTree tree,
+LongLiteralLowerCaseSuffix.matchLiteral(com.sun.source.tree.LiteralTree literalTree,
VisitorState state)
-SwigMemoryLeak.matchLiteral(com.sun.source.tree.LiteralTree tree,
+OrphanedFormatString.matchLiteral(com.sun.source.tree.LiteralTree tree,
VisitorState state)
-AbstractReturnValueIgnored.matchMemberReference(com.sun.source.tree.MemberReferenceTree tree,
+SwigMemoryLeak.matchLiteral(com.sun.source.tree.LiteralTree tree,
VisitorState state)
-BugChecker.MemberReferenceTreeMatcher.matchMemberReference(com.sun.source.tree.MemberReferenceTree tree,
+AbstractReturnValueIgnored.matchMemberReference(com.sun.source.tree.MemberReferenceTree tree,
VisitorState state)
-CompileTimeConstantChecker.matchMemberReference(com.sun.source.tree.MemberReferenceTree node,
+BugChecker.MemberReferenceTreeMatcher.matchMemberReference(com.sun.source.tree.MemberReferenceTree tree,
VisitorState state)
-EqualsIncompatibleType.matchMemberReference(com.sun.source.tree.MemberReferenceTree tree,
+CompileTimeConstantChecker.matchMemberReference(com.sun.source.tree.MemberReferenceTree node,
VisitorState state)
-IsInstanceIncompatibleType.matchMemberReference(com.sun.source.tree.MemberReferenceTree tree,
+EqualsIncompatibleType.matchMemberReference(com.sun.source.tree.MemberReferenceTree tree,
VisitorState state)
-JdkObsolete.matchMemberReference(com.sun.source.tree.MemberReferenceTree tree,
+IsInstanceIncompatibleType.matchMemberReference(com.sun.source.tree.MemberReferenceTree tree,
VisitorState state)
-ModifySourceCollectionInStream.matchMemberReference(com.sun.source.tree.MemberReferenceTree tree,
+JdkObsolete.matchMemberReference(com.sun.source.tree.MemberReferenceTree tree,
VisitorState state)
-RestrictedApiChecker.matchMemberReference(com.sun.source.tree.MemberReferenceTree tree,
+ModifySourceCollectionInStream.matchMemberReference(com.sun.source.tree.MemberReferenceTree tree,
VisitorState state)
-RxReturnValueIgnored.matchMemberReference(com.sun.source.tree.MemberReferenceTree tree,
+RestrictedApiChecker.matchMemberReference(com.sun.source.tree.MemberReferenceTree tree,
VisitorState state)
-StreamToIterable.matchMemberReference(com.sun.source.tree.MemberReferenceTree tree,
+RxReturnValueIgnored.matchMemberReference(com.sun.source.tree.MemberReferenceTree tree,
VisitorState state)
-UnnecessaryMethodReference.matchMemberReference(com.sun.source.tree.MemberReferenceTree tree,
+StreamToIterable.matchMemberReference(com.sun.source.tree.MemberReferenceTree tree,
VisitorState state)
-BugChecker.MemberSelectTreeMatcher.matchMemberSelect(com.sun.source.tree.MemberSelectTree tree,
+UnnecessaryMethodReference.matchMemberReference(com.sun.source.tree.MemberReferenceTree tree,
VisitorState state)
-NonCanonicalType.matchMemberSelect(com.sun.source.tree.MemberSelectTree tree,
+BugChecker.MemberSelectTreeMatcher.matchMemberSelect(com.sun.source.tree.MemberSelectTree tree,
VisitorState state)
-NullableOnContainingClass.matchMemberSelect(com.sun.source.tree.MemberSelectTree tree,
+NonCanonicalType.matchMemberSelect(com.sun.source.tree.MemberSelectTree tree,
VisitorState state)
-StaticQualifiedUsingExpression.matchMemberSelect(com.sun.source.tree.MemberSelectTree tree,
+NullableOnContainingClass.matchMemberSelect(com.sun.source.tree.MemberSelectTree tree,
VisitorState state)
-SystemOut.matchMemberSelect(com.sun.source.tree.MemberSelectTree tree,
+StaticQualifiedUsingExpression.matchMemberSelect(com.sun.source.tree.MemberSelectTree tree,
VisitorState state)
-TypeParameterQualifier.matchMemberSelect(com.sun.source.tree.MemberSelectTree tree,
+SystemOut.matchMemberSelect(com.sun.source.tree.MemberSelectTree tree,
VisitorState state)
-AnnotationPosition.matchMethod(com.sun.source.tree.MethodTree tree,
+TypeParameterQualifier.matchMemberSelect(com.sun.source.tree.MemberSelectTree tree,
VisitorState state)
-AutoValueBuilderDefaultsInConstructor.matchMethod(com.sun.source.tree.MethodTree tree,
+AnnotationPosition.matchMethod(com.sun.source.tree.MethodTree tree,
VisitorState state)
-AvoidObjectArrays.matchMethod(com.sun.source.tree.MethodTree method,
+AutoValueBuilderDefaultsInConstructor.matchMethod(com.sun.source.tree.MethodTree tree,
VisitorState state)
-BugChecker.MethodTreeMatcher.matchMethod(com.sun.source.tree.MethodTree tree,
+AvoidObjectArrays.matchMethod(com.sun.source.tree.MethodTree method,
VisitorState state)
-CacheLoaderNull.matchMethod(com.sun.source.tree.MethodTree tree,
+BugChecker.MethodTreeMatcher.matchMethod(com.sun.source.tree.MethodTree tree,
VisitorState state)
-ChainingConstructorIgnoresParameter.matchMethod(com.sun.source.tree.MethodTree tree,
+CacheLoaderNull.matchMethod(com.sun.source.tree.MethodTree tree,
VisitorState state)
-CheckedExceptionNotThrown.matchMethod(com.sun.source.tree.MethodTree tree,
+ChainingConstructorIgnoresParameter.matchMethod(com.sun.source.tree.MethodTree tree,
VisitorState state)
-CheckNotNullMultipleTimes.matchMethod(com.sun.source.tree.MethodTree tree,
+CheckedExceptionNotThrown.matchMethod(com.sun.source.tree.MethodTree tree,
VisitorState state)
-CheckReturnValue.matchMethod(com.sun.source.tree.MethodTree tree,
+CheckNotNullMultipleTimes.matchMethod(com.sun.source.tree.MethodTree tree,
VisitorState state)
-
-Validate @CheckReturnValue
and CanIgnoreReturnValue
usage on methods.
-
+
-ComparisonContractViolated.matchMethod(com.sun.source.tree.MethodTree tree,
+CheckReturnValue.matchMethod(com.sun.source.tree.MethodTree tree,
VisitorState state)
-
+
+Validate @CheckReturnValue
and CanIgnoreReturnValue
usage on methods.
+
-CompileTimeConstantChecker.matchMethod(com.sun.source.tree.MethodTree node,
+ComparisonContractViolated.matchMethod(com.sun.source.tree.MethodTree tree,
VisitorState state)
-DepAnn.matchMethod(com.sun.source.tree.MethodTree methodTree,
+CompileTimeConstantChecker.matchMethod(com.sun.source.tree.MethodTree node,
VisitorState state)
-DoNotCallChecker.matchMethod(com.sun.source.tree.MethodTree tree,
+DepAnn.matchMethod(com.sun.source.tree.MethodTree methodTree,
VisitorState state)
-DoNotCallSuggester.matchMethod(com.sun.source.tree.MethodTree tree,
+DoNotCallChecker.matchMethod(com.sun.source.tree.MethodTree tree,
VisitorState state)
-DoNotClaimAnnotations.matchMethod(com.sun.source.tree.MethodTree tree,
+DoNotCallSuggester.matchMethod(com.sun.source.tree.MethodTree tree,
VisitorState state)
-EqualsReference.matchMethod(com.sun.source.tree.MethodTree methodTree,
- VisitorState visitorState)
+DoNotClaimAnnotations.matchMethod(com.sun.source.tree.MethodTree tree,
+ VisitorState state)
-EqualsUnsafeCast.matchMethod(com.sun.source.tree.MethodTree tree,
- VisitorState state)
+EqualsReference.matchMethod(com.sun.source.tree.MethodTree methodTree,
+ VisitorState visitorState)
-EqualsWrongThing.matchMethod(com.sun.source.tree.MethodTree tree,
+EqualsUnsafeCast.matchMethod(com.sun.source.tree.MethodTree tree,
VisitorState state)
-ExpectedExceptionChecker.matchMethod(com.sun.source.tree.MethodTree tree,
+EqualsWrongThing.matchMethod(com.sun.source.tree.MethodTree tree,
VisitorState state)
-Finalize.matchMethod(com.sun.source.tree.MethodTree tree,
+ExpectedExceptionChecker.matchMethod(com.sun.source.tree.MethodTree tree,
VisitorState state)
-ForOverrideChecker.matchMethod(com.sun.source.tree.MethodTree tree,
+Finalize.matchMethod(com.sun.source.tree.MethodTree tree,
VisitorState state)
-FunctionalInterfaceMethodChanged.matchMethod(com.sun.source.tree.MethodTree tree,
+ForOverrideChecker.matchMethod(com.sun.source.tree.MethodTree tree,
VisitorState state)
-IncorrectMainMethod.matchMethod(com.sun.source.tree.MethodTree tree,
+FunctionalInterfaceMethodChanged.matchMethod(com.sun.source.tree.MethodTree tree,
VisitorState state)
-InfiniteRecursion.matchMethod(com.sun.source.tree.MethodTree declaration,
+IncorrectMainMethod.matchMethod(com.sun.source.tree.MethodTree tree,
VisitorState state)
-InjectOnBugCheckers.matchMethod(com.sun.source.tree.MethodTree tree,
+InfiniteRecursion.matchMethod(com.sun.source.tree.MethodTree declaration,
VisitorState state)
-InterruptedExceptionSwallowed.matchMethod(com.sun.source.tree.MethodTree tree,
+InjectOnBugCheckers.matchMethod(com.sun.source.tree.MethodTree tree,
VisitorState state)
-JUnit4ClassAnnotationNonStatic.matchMethod(com.sun.source.tree.MethodTree tree,
+InterruptedExceptionSwallowed.