Skip to content

Commit

Permalink
Fixed issue #269: annotations on enum values weren't being printed by…
Browse files Browse the repository at this point in the history
… delombok.

(Due to yet another bug in javac's pretty printer...)
  • Loading branch information
rzwitserloot committed Sep 20, 2011
1 parent edffb00 commit e4bff6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/changelog.markdown
Expand Up @@ -2,6 +2,7 @@ Lombok Changelog
----------------
### v0.10.1 (edge)
* BUGFIX: `@Delegate` in eclipse could cause memory leaks in 0.10.0. [Issue #264](http://code.google.com/p/projectlombok/issues/detail?id=264)
* BUGFIX: Annotations on enum values were being deleted by delombok. [Issue #269](http://code.google.com/p/projectlombok/issues/detail?id=269)
* ENHANCEMENT: `@NotNull` is now also recognized as an annotation indicating that lombok should generate nullcheck guards in generated constructors and setters. [Issue #271](http://code.google.com/p/projectlombok/issues/detail?id=271)

### v0.10.0 "Burning Emu" (August 19th, 2011)
Expand Down
1 change: 1 addition & 0 deletions src/delombok/lombok/delombok/PrettyCommentsPrinter.java
Expand Up @@ -580,6 +580,7 @@ public void printEnumBody(List<JCTree> stats) throws IOException {
}

public void printEnumMember(JCVariableDecl tree) throws IOException {
printAnnotations(tree.mods.annotations);
print(tree.name);
if (tree.init instanceof JCNewClass) {
JCNewClass constructor = (JCNewClass) tree.init;
Expand Down

0 comments on commit e4bff6b

Please sign in to comment.