Works around issue 217. it's not a proper fix but better than 0.10.0-RC1.

This commit is contained in:
Reinier Zwitserloot committed 2011-07-25 20:22:56 +02:00
1 parent 403f515aa2
commit dfca0e4cbd
1 file changed
+3 -1
@@ -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;