aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/eclipse/handlers/HandleSneakyThrows.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2013-10-10 22:36:16 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2013-10-10 23:25:09 +0200
commita9b4fb0c685fbc52079d57532c04277e78c95ec2 (patch)
tree0be3466295af6b87b1af63acc675749786196f07 /src/core/lombok/eclipse/handlers/HandleSneakyThrows.java
parent08961edcfeef9b181621351e36bbc267f9395415 (diff)
downloadlombok-a9b4fb0c685fbc52079d57532c04277e78c95ec2.tar.gz
lombok-a9b4fb0c685fbc52079d57532c04277e78c95ec2.tar.bz2
lombok-a9b4fb0c685fbc52079d57532c04277e78c95ec2.zip
Fix for issues when mixing @NonNull on params with @SneakyThrows or @Synchronized [Issue #588]
Diffstat (limited to 'src/core/lombok/eclipse/handlers/HandleSneakyThrows.java')
-rw-r--r--src/core/lombok/eclipse/handlers/HandleSneakyThrows.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/lombok/eclipse/handlers/HandleSneakyThrows.java b/src/core/lombok/eclipse/handlers/HandleSneakyThrows.java
index aa78ca3b..d3a95db8 100644
--- a/src/core/lombok/eclipse/handlers/HandleSneakyThrows.java
+++ b/src/core/lombok/eclipse/handlers/HandleSneakyThrows.java
@@ -30,6 +30,7 @@ import java.util.List;
import lombok.SneakyThrows;
import lombok.core.AnnotationValues;
+import lombok.core.HandlerPriority;
import lombok.eclipse.DeferUntilPostDiet;
import lombok.eclipse.EclipseAnnotationHandler;
import lombok.eclipse.EclipseNode;
@@ -60,6 +61,7 @@ import org.mangosdk.spi.ProviderFor;
*/
@ProviderFor(EclipseAnnotationHandler.class)
@DeferUntilPostDiet
+@HandlerPriority(value = 1024) // 2^10; @NonNull must have run first, so that we wrap around the statements generated by it.
public class HandleSneakyThrows extends EclipseAnnotationHandler<SneakyThrows> {
private static class DeclaredException {