aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/transform/resource/after-delombok/SneakyThrowsPlain.java8
-rw-r--r--test/transform/resource/after-ecj/SneakyThrowsPlain.java9
-rw-r--r--test/transform/resource/before/SneakyThrowsPlain.java5
3 files changed, 21 insertions, 1 deletions
diff --git a/test/transform/resource/after-delombok/SneakyThrowsPlain.java b/test/transform/resource/after-delombok/SneakyThrowsPlain.java
index 28c39b40..93f734f8 100644
--- a/test/transform/resource/after-delombok/SneakyThrowsPlain.java
+++ b/test/transform/resource/after-delombok/SneakyThrowsPlain.java
@@ -1,4 +1,12 @@
class SneakyThrowsPlain {
+ SneakyThrowsPlain() {
+ super();
+ try {
+ System.out.println("constructor");
+ } catch (final java.lang.Throwable $ex) {
+ throw lombok.Lombok.sneakyThrow($ex);
+ }
+ }
public void test() {
try {
System.out.println("test1");
diff --git a/test/transform/resource/after-ecj/SneakyThrowsPlain.java b/test/transform/resource/after-ecj/SneakyThrowsPlain.java
index 6e75a75c..56016b5a 100644
--- a/test/transform/resource/after-ecj/SneakyThrowsPlain.java
+++ b/test/transform/resource/after-ecj/SneakyThrowsPlain.java
@@ -1,7 +1,14 @@
import lombok.SneakyThrows;
class SneakyThrowsPlain {
- SneakyThrowsPlain() {
+ @lombok.SneakyThrows SneakyThrowsPlain() {
super();
+ try
+ {
+ System.out.println("constructor");
+ }
+ catch (final java.lang.Throwable $ex) {
+ throw lombok.Lombok.sneakyThrow($ex);
+ }
}
public @lombok.SneakyThrows void test() {
try
diff --git a/test/transform/resource/before/SneakyThrowsPlain.java b/test/transform/resource/before/SneakyThrowsPlain.java
index 97fecf8f..261e1b53 100644
--- a/test/transform/resource/before/SneakyThrowsPlain.java
+++ b/test/transform/resource/before/SneakyThrowsPlain.java
@@ -1,5 +1,10 @@
import lombok.SneakyThrows;
class SneakyThrowsPlain {
+ @lombok.SneakyThrows SneakyThrowsPlain() {
+ super();
+ System.out.println("constructor");
+ }
+
@lombok.SneakyThrows public void test() {
System.out.println("test1");
}