diff options
author | ttzn <ttzn.dev@gmail.com> | 2020-12-26 13:13:24 +0100 |
---|---|---|
committer | ttzn <ttzn.dev@gmail.com> | 2021-03-24 22:27:25 +0100 |
commit | 63ea3db6b7ab41ff945cad1ec8af7f78b5679f66 (patch) | |
tree | a16197915108110f2c12f0ece0d32cef8fdab9f7 /test | |
parent | 30a2921e6321d20f0f925694dfd6a32d9e1f1552 (diff) | |
download | lombok-63ea3db6b7ab41ff945cad1ec8af7f78b5679f66.tar.gz lombok-63ea3db6b7ab41ff945cad1ec8af7f78b5679f66.tar.bz2 lombok-63ea3db6b7ab41ff945cad1ec8af7f78b5679f66.zip |
@StandardException feature working draft
* annotation with javac and Eclipse handlers
* single test file
Diffstat (limited to 'test')
-rw-r--r-- | test/transform/resource/after-delombok/StandardExceptions.java | 39 | ||||
-rw-r--r-- | test/transform/resource/before/StandardExceptions.java | 6 |
2 files changed, 45 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..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() { + } +} |