From 63ea3db6b7ab41ff945cad1ec8af7f78b5679f66 Mon Sep 17 00:00:00 2001 From: ttzn Date: Sat, 26 Dec 2020 13:13:24 +0100 Subject: @StandardException feature working draft * annotation with javac and Eclipse handlers * single test file --- .../after-delombok/StandardExceptions.java | 39 ++++++++++++++++++++++ .../resource/before/StandardExceptions.java | 6 ++++ 2 files changed, 45 insertions(+) create mode 100644 test/transform/resource/after-delombok/StandardExceptions.java create mode 100644 test/transform/resource/before/StandardExceptions.java (limited to 'test/transform') 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..7e4a3b93 --- /dev/null +++ b/test/transform/resource/before/StandardExceptions.java @@ -0,0 +1,6 @@ +@lombok.StandardException class EmptyException extends Exception { +} +@lombok.StandardException class NoArgsException extends Exception { + public NoArgsException() { + } +} -- cgit From af16ba23cd46fa3d3b096daa8d725df2b4d78976 Mon Sep 17 00:00:00 2001 From: ttzn Date: Wed, 24 Mar 2021 23:52:08 +0100 Subject: @StandardException feature working draft * move feature under experimental * replace ProviderFor with Provides * add doc material (to be completed) * add author --- test/transform/resource/before/StandardExceptions.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/transform') diff --git a/test/transform/resource/before/StandardExceptions.java b/test/transform/resource/before/StandardExceptions.java index 7e4a3b93..939e1b6b 100644 --- a/test/transform/resource/before/StandardExceptions.java +++ b/test/transform/resource/before/StandardExceptions.java @@ -1,6 +1,8 @@ -@lombok.StandardException class EmptyException extends Exception { +import lombok.experimental.StandardException; + +@StandardException class EmptyException extends Exception { } -@lombok.StandardException class NoArgsException extends Exception { +@StandardException class NoArgsException extends Exception { public NoArgsException() { } } -- cgit