Fixed issue #269: annotations on enum values weren't being printed by delombok.

(Due to yet another bug in javac's pretty printer...)
This commit is contained in:
Reinier Zwitserloot committed 2011-09-20 21:04:12 +02:00
1 parent edffb00cfd
commit e4bff6b45e
2 files changed
+2

No files matched your search

+1
View File
@@ -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)
@@ -580,6 +580,7 @@ public class PrettyCommentsPrinter extends JCTree.Visitor {
}
public void printEnumMember(JCVariableDecl tree) throws IOException {
printAnnotations(tree.mods.annotations);
print(tree.name);
if (tree.init instanceof JCNewClass) {
JCNewClass constructor = (JCNewClass) tree.init;