aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2010-07-17 06:56:37 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2010-07-17 06:56:37 +0200
commit89586dd793c61f047afda3e34a92487815cc04e3 (patch)
tree6c735c2bc18abc85d3d5b1305073387fb678b8e6
parent32a23d77866093c5ba97eefdd5482868cf505de5 (diff)
downloadlombok-89586dd793c61f047afda3e34a92487815cc04e3.tar.gz
lombok-89586dd793c61f047afda3e34a92487815cc04e3.tar.bz2
lombok-89586dd793c61f047afda3e34a92487815cc04e3.zip
Bugfix: Annotations on types were being ignored if the type had no members in it, in javac only.
-rw-r--r--src/core/lombok/javac/JavacAST.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lombok/javac/JavacAST.java b/src/core/lombok/javac/JavacAST.java
index 2218b13f..1a470386 100644
--- a/src/core/lombok/javac/JavacAST.java
+++ b/src/core/lombok/javac/JavacAST.java
@@ -176,8 +176,8 @@ public class JavacAST extends AST<JavacAST, JavacNode, JCTree> {
if (setAndGetAsHandled(type)) return null;
List<JavacNode> childNodes = new ArrayList<JavacNode>();
+ for (JCAnnotation annotation : type.mods.annotations) addIfNotNull(childNodes, buildAnnotation(annotation));
for (JCTree def : type.defs) {
- for (JCAnnotation annotation : type.mods.annotations) addIfNotNull(childNodes, buildAnnotation(annotation));
/* A def can be:
* JCClassDecl for inner types
* JCMethodDecl for constructors and methods