aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2011-12-19 20:56:21 +0100
committerRoel Spilker <r.spilker@gmail.com>2011-12-19 20:56:21 +0100
commit76c45bc4824f68c2ef740351722fdd4e470248c5 (patch)
tree1e7f01d848401d0fd6b8d67fc1a2809289587de9 /src/core/lombok
parent0234039babafa1098c337136a97f4e1f94e35855 (diff)
parent71c48fb991c657aaa30b805bc0e10e5bd00bec3b (diff)
downloadlombok-76c45bc4824f68c2ef740351722fdd4e470248c5.tar.gz
lombok-76c45bc4824f68c2ef740351722fdd4e470248c5.tar.bz2
lombok-76c45bc4824f68c2ef740351722fdd4e470248c5.zip
Merge branch 'Issue_315' of https://github.com/jvanderhel/lombok into jvanderhel-Issue_315
Diffstat (limited to 'src/core/lombok')
-rw-r--r--src/core/lombok/eclipse/handlers/HandleLog.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/lombok/eclipse/handlers/HandleLog.java b/src/core/lombok/eclipse/handlers/HandleLog.java
index b37d4f27..0abac2fe 100644
--- a/src/core/lombok/eclipse/handlers/HandleLog.java
+++ b/src/core/lombok/eclipse/handlers/HandleLog.java
@@ -71,7 +71,9 @@ public class HandleLog {
ClassLiteralAccess loggingType = selfType(owner, source);
- injectField(owner, createField(framework, source, loggingType));
+ FieldDeclaration fieldDeclaration = createField(framework, source, loggingType);
+ fieldDeclaration.traverse(new SetGeneratedByVisitor(source), typeDecl.staticInitializerScope);
+ injectField(owner, fieldDeclaration);
owner.rebuild();
break;
default: