From dfca0e4cbdf761bcb119dc2b5bd1598e455d6d09 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Mon, 25 Jul 2011 20:22:56 +0200 Subject: Works around issue 217. it's not a proper fix but better than 0.10.0-RC1. --- src/core/lombok/eclipse/handlers/HandleSynchronized.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/core') 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 { 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; -- cgit