diff options
Diffstat (limited to 'src/core/lombok')
-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: |