Skip to content

Commit

Permalink
Fix test0205 relating to source position of method name in annotation…
Browse files Browse the repository at this point in the history
… type

Signed-off-by: Rob Stryker <stryker@redhat.com>
  • Loading branch information
Rob Stryker committed Aug 15, 2024
1 parent a7ad57a commit 1507820
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,10 @@ private ASTNode convertMethodInAnnotationTypeDecl(JCMethodDecl javac, ASTNode pa
}
if (convertName(javac.getName()) instanceof SimpleName simpleName) {
res.setName(simpleName);
int start = javac.getPreferredPosition();
if (start > -1) {
simpleName.setSourceRange(start, javac.getName().toString().length());
}
}
return res;
}
Expand Down

0 comments on commit 1507820

Please sign in to comment.