mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 02:17:12 +00:00
[fixes #3665] Add cast for null arguments
This commit is contained in:
1 parent
30e19e4cdc
commit
52283d71cc
7 files changed
+70
-9
No files matched your search
@@ -0,0 +1,25 @@
|
||||
public class StandardExceptionWithConstructor extends Exception {
|
||||
public StandardExceptionWithConstructor(Integer x, Integer y) {
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
public StandardExceptionWithConstructor() {
|
||||
this((java.lang.String) null, (java.lang.Throwable) null);
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
public StandardExceptionWithConstructor(final java.lang.String message) {
|
||||
this(message, (java.lang.Throwable) null);
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
public StandardExceptionWithConstructor(final java.lang.Throwable cause) {
|
||||
this(cause != null ? cause.getMessage() : null, cause);
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
public StandardExceptionWithConstructor(final java.lang.String message, final java.lang.Throwable cause) {
|
||||
super(message);
|
||||
if (cause != null) super.initCause(cause);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user