diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2011-06-02 06:37:01 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2011-06-02 06:43:48 +0200 |
commit | 964b82124dd92e91652925a450ab9208e41df601 (patch) | |
tree | ef92d5c72f86fc70ceb4e4693b188bedc5e9ed40 /src/core/lombok/eclipse/handlers/HandleSynchronized.java | |
parent | cd6eee36cfc10e2dcb1dc12cbaa27db7c0b384a5 (diff) | |
download | lombok-964b82124dd92e91652925a450ab9208e41df601.tar.gz lombok-964b82124dd92e91652925a450ab9208e41df601.tar.bz2 lombok-964b82124dd92e91652925a450ab9208e41df601.zip |
Eclipse handlers can now opt out of being run in diet-parse mode. Fixes Synchronized and SneakyThrows
Diffstat (limited to 'src/core/lombok/eclipse/handlers/HandleSynchronized.java')
-rw-r--r-- | src/core/lombok/eclipse/handlers/HandleSynchronized.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/lombok/eclipse/handlers/HandleSynchronized.java b/src/core/lombok/eclipse/handlers/HandleSynchronized.java index ac751aa5..905316bc 100644 --- a/src/core/lombok/eclipse/handlers/HandleSynchronized.java +++ b/src/core/lombok/eclipse/handlers/HandleSynchronized.java @@ -57,6 +57,10 @@ public class HandleSynchronized implements EclipseAnnotationHandler<Synchronized private static final char[] INSTANCE_LOCK_NAME = "$lock".toCharArray(); private static final char[] STATIC_LOCK_NAME = "$LOCK".toCharArray(); + @Override public boolean deferUntilPostDiet() { + return true; + } + @Override public void handle(AnnotationValues<Synchronized> annotation, Annotation source, EclipseNode annotationNode) { int p1 = source.sourceStart -1; int p2 = source.sourceStart -2; |