diff options
author | jvanderhel <Jappe.vanderhel@gmail.com> | 2011-12-13 00:32:48 +0100 |
---|---|---|
committer | jvanderhel <Jappe.vanderhel@gmail.com> | 2011-12-13 00:32:48 +0100 |
commit | 71c48fb991c657aaa30b805bc0e10e5bd00bec3b (patch) | |
tree | e4702f95bfaef2f423887f96190861d60f49ba38 /src/core | |
parent | b476825fc723d10098a11baa61876f4d23eb4c45 (diff) | |
download | lombok-71c48fb991c657aaa30b805bc0e10e5bd00bec3b.tar.gz lombok-71c48fb991c657aaa30b805bc0e10e5bd00bec3b.tar.bz2 lombok-71c48fb991c657aaa30b805bc0e10e5bd00bec3b.zip |
Fix for Issue 315: HandleLogger now sets all its sourcepositions and generatedBy's. convertToFieldDeclaration now als marks the resulting FieldDeclaration as isGenerated
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/lombok/eclipse/handlers/HandleLog.java | 4 |
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: |