aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2021-04-16 03:30:34 +0200
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2021-04-16 03:30:34 +0200
commit2e212de523407c8d9f4471fea573c6c70164513b (patch)
tree4bb0efca73cbde19fc6b7f7d3063085ef799845d /test
parent9e52cf0947db302375a910d5d32e39e41656d96e (diff)
parentaf16ba23cd46fa3d3b096daa8d725df2b4d78976 (diff)
downloadlombok-2e212de523407c8d9f4471fea573c6c70164513b.tar.gz
lombok-2e212de523407c8d9f4471fea573c6c70164513b.tar.bz2
lombok-2e212de523407c8d9f4471fea573c6c70164513b.zip
Merge branch 'standard-exception' of git://github.com/ttzn/lombok into ttzn-standard-exception
Diffstat (limited to 'test')
-rw-r--r--test/transform/resource/after-delombok/StandardExceptions.java39
-rw-r--r--test/transform/resource/before/StandardExceptions.java8
2 files changed, 47 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/StandardExceptions.java b/test/transform/resource/after-delombok/StandardExceptions.java
new file mode 100644
index 00000000..47453f50
--- /dev/null
+++ b/test/transform/resource/after-delombok/StandardExceptions.java
@@ -0,0 +1,39 @@
+class EmptyException extends Exception {
+ @java.lang.SuppressWarnings("all")
+ public EmptyException() {
+ }
+
+ @java.lang.SuppressWarnings("all")
+ public EmptyException(final String message) {
+ super(message);
+ }
+
+ @java.lang.SuppressWarnings("all")
+ public EmptyException(final Throwable cause) {
+ super(cause);
+ }
+
+ @java.lang.SuppressWarnings("all")
+ public EmptyException(final String message, final Throwable cause) {
+ super(message, cause);
+ }
+}
+class NoArgsException extends Exception {
+ public NoArgsException() {
+ }
+
+ @java.lang.SuppressWarnings("all")
+ public NoArgsException(final String message) {
+ super(message);
+ }
+
+ @java.lang.SuppressWarnings("all")
+ public NoArgsException(final Throwable cause) {
+ super(cause);
+ }
+
+ @java.lang.SuppressWarnings("all")
+ public NoArgsException(final String message, final Throwable cause) {
+ super(message, cause);
+ }
+} \ No newline at end of file
diff --git a/test/transform/resource/before/StandardExceptions.java b/test/transform/resource/before/StandardExceptions.java
new file mode 100644
index 00000000..939e1b6b
--- /dev/null
+++ b/test/transform/resource/before/StandardExceptions.java
@@ -0,0 +1,8 @@
+import lombok.experimental.StandardException;
+
+@StandardException class EmptyException extends Exception {
+}
+@StandardException class NoArgsException extends Exception {
+ public NoArgsException() {
+ }
+}