From 89586dd793c61f047afda3e34a92487815cc04e3 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Sat, 17 Jul 2010 06:56:37 +0200 Subject: Bugfix: Annotations on types were being ignored if the type had no members in it, in javac only. --- src/core/lombok/javac/JavacAST.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { if (setAndGetAsHandled(type)) return null; List childNodes = new ArrayList(); + 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 -- cgit