Uses of Class
com.google.errorprone.fixes.SuggestedFixes.VariableNamer
Packages that use SuggestedFixes.VariableNamer
Package
Description
Checks added to the java compiler which detect common bug patterns.
Support code for providing automated corrections for defects we find.
-
Uses of SuggestedFixes.VariableNamer in com.google.errorprone.bugpatterns
Methods in com.google.errorprone.bugpatterns with parameters of type SuggestedFixes.VariableNamerModifier and TypeMethodDescriptionAssertThrowsUtils.tryFailToAssertThrows(TryTree tryTree, List<? extends StatementTree> throwingStatements, Optional<Tree> failureMessage, VisitorState state, SuggestedFixes.VariableNamer namer) Transforms a try-catch block in the try-fail pattern into a call to JUnit'sassertThrows, inserting the behavior of thetryblock into a lambda parameter, and assigning the expected exception to a variable, if it is used within thecatchblock. -
Uses of SuggestedFixes.VariableNamer in com.google.errorprone.fixes
Methods in com.google.errorprone.fixes that return SuggestedFixes.VariableNamerModifier and TypeMethodDescriptionstatic SuggestedFixes.VariableNamerSuggestedFixes.variableNamer(VisitorState state)