diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2013-12-11 22:38:59 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2013-12-11 22:40:49 +0100 |
commit | 7d51842ca381c491d5dfb44bc76b0cea345e7170 (patch) | |
tree | 0755b629d11d88b15713bac67d9c12751fe8294b /src/core/lombok/eclipse | |
parent | 5f92913a52f46300235e6f31b356025998d9f859 (diff) | |
download | lombok-7d51842ca381c491d5dfb44bc76b0cea345e7170.tar.gz lombok-7d51842ca381c491d5dfb44bc76b0cea345e7170.tar.bz2 lombok-7d51842ca381c491d5dfb44bc76b0cea345e7170.zip |
semi-fix for issue 602, but not complete as adding annotations to generated fields leads to crazy issues (see issue 217): generated LOG field now has @SuppressWarnings on it.
Diffstat (limited to 'src/core/lombok/eclipse')
-rw-r--r-- | src/core/lombok/eclipse/handlers/HandleLog.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/lombok/eclipse/handlers/HandleLog.java b/src/core/lombok/eclipse/handlers/HandleLog.java index 2e7b4475..dd2c7ea8 100644 --- a/src/core/lombok/eclipse/handlers/HandleLog.java +++ b/src/core/lombok/eclipse/handlers/HandleLog.java @@ -73,6 +73,8 @@ public class HandleLog { FieldDeclaration fieldDeclaration = createField(framework, source, loggingType); fieldDeclaration.traverse(new SetGeneratedByVisitor(source), typeDecl.staticInitializerScope); + // TODO temporary workaround for issue 217. http://code.google.com/p/projectlombok/issues/detail?id=217 + // injectFieldSuppressWarnings(owner, fieldDeclaration); injectField(owner, fieldDeclaration); owner.rebuild(); break; |