Skip to content

Commit

Permalink
Missing default value in code like int id() default 0;
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Stryker <stryker@redhat.com>
  • Loading branch information
Rob Stryker committed Apr 11, 2024
1 parent 64433c5 commit 6410e65
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,9 @@ private ASTNode convertMethodInAnnotationTypeDecl(JCMethodDecl javac, ASTNode pa
commonSettings(res, javac);
res.modifiers().addAll(convert(javac.getModifiers(), res));
res.setType(convertToType(javac.getReturnType()));
if( javac.defaultValue != null) {
res.setDefault(convertExpression(javac.defaultValue));
}
if (convert(javac.getName()) instanceof SimpleName simpleName) {
res.setName(simpleName);
}
Expand Down

0 comments on commit 6410e65

Please sign in to comment.