diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2011-07-25 20:22:56 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2011-07-25 20:22:56 +0200 |
commit | dfca0e4cbdf761bcb119dc2b5bd1598e455d6d09 (patch) | |
tree | 9c9678e2cf8b1749523b81fb06af15fc6078e32c /src/core/lombok | |
parent | 403f515aa28b94f223903c9d400bee3d4fa9b12e (diff) | |
download | lombok-dfca0e4cbdf761bcb119dc2b5bd1598e455d6d09.tar.gz lombok-dfca0e4cbdf761bcb119dc2b5bd1598e455d6d09.tar.bz2 lombok-dfca0e4cbdf761bcb119dc2b5bd1598e455d6d09.zip |
Works around issue 217. it's not a proper fix but better than 0.10.0-RC1.
Diffstat (limited to 'src/core/lombok')
-rw-r--r-- | src/core/lombok/eclipse/handlers/HandleSynchronized.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/lombok/eclipse/handlers/HandleSynchronized.java b/src/core/lombok/eclipse/handlers/HandleSynchronized.java index 46234515..620e7864 100644 --- a/src/core/lombok/eclipse/handlers/HandleSynchronized.java +++ b/src/core/lombok/eclipse/handlers/HandleSynchronized.java @@ -100,7 +100,9 @@ public class HandleSynchronized extends EclipseAnnotationHandler<Synchronized> { fieldDecl.type = new QualifiedTypeReference(TypeConstants.JAVA_LANG_OBJECT, new long[] { 0, 0, 0 }); Eclipse.setGeneratedBy(fieldDecl.type, source); fieldDecl.initialization = arrayAlloc; - injectFieldSuppressWarnings(annotationNode.up().up(), fieldDecl); + // TODO temporary workaround for issue 217. http://code.google.com/p/projectlombok/issues/detail?id=217 + // injectFieldSuppressWarnings(annotationNode.up().up(), fieldDecl); + injectField(annotationNode.up().up(), fieldDecl); } return lockName; |