Skip to content

Commit

Permalink
>
Browse files Browse the repository at this point in the history
  • Loading branch information
oxkitsune committed Aug 9, 2023
1 parent d6200e8 commit 8a2a4f8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ public static SuggestedFix renameMethod(MethodTree tree, String replacement, Vis
for (ErrorProneToken token : methodTokens) {
if (token.kind() == TokenKind.IDENTIFIER
&& token.name().equals(tree.getName())
&& token.pos() >= returnTypeEndPos) {
&& token.pos() > returnTypeEndPos) {
return SuggestedFix.replace(token.pos(), token.endPos(), replacement);
}
}
Expand Down

0 comments on commit 8a2a4f8

Please sign in to comment.