Skip to content

Commit

Permalink
Autofix all the AnnotationPosition findings in EP.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 424096869
  • Loading branch information
graememorgan authored and Error Prone Team committed Jan 25, 2022
1 parent 4698c8e commit c18ae52
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ private static boolean secondParameterIsString(ExpressionTree tree, VisitorState
&& isSubtype(methodSymbol.getParameters().get(1).type, state.getSymtab().stringType, state);
}

@Nullable
private static ExpressionTree formatString(MethodInvocationTree tree, VisitorState state) {
private static @Nullable ExpressionTree formatString(
MethodInvocationTree tree, VisitorState state) {
ImmutableList<ExpressionTree> args = FormatStringUtils.formatMethodArguments(tree, state);
if (!args.isEmpty()) {
return args.get(0);
Expand All @@ -94,8 +94,7 @@ private static ExpressionTree formatString(MethodInvocationTree tree, VisitorSta
return formatMethodAnnotationArguments(tree, state);
}

@Nullable
private static ExpressionTree formatMethodAnnotationArguments(
private static @Nullable ExpressionTree formatMethodAnnotationArguments(
MethodInvocationTree tree, VisitorState state) {
MethodSymbol sym = getSymbol(tree);
if (sym == null) {
Expand Down

0 comments on commit c18ae52

Please sign in to comment.