Skip to content

Commit

Permalink
fix: annotation with enum
Browse files Browse the repository at this point in the history
Signed-off-by: azerr <[email protected]>
  • Loading branch information
angelozerr committed Oct 10, 2024
1 parent 46aaa3b commit 70aa7f2
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ public static String getAnnotationMemberValue(PsiAnnotation annotation, String m
if (member == null) {
return null;
}
if (member instanceof PsiEnumConstant) {
return member.getText();
}
if (member instanceof PsiReference reference) {
// ex: @Path(MY_CONSTANTS) where MY_CONSTANTS is a Java field.
member = reference.resolve();
Expand Down

0 comments on commit 70aa7f2

Please sign in to comment.