mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 20:15:09 +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,20 @@
|
||||
import lombok.experimental.StandardException;
|
||||
public @StandardException class StandardExceptionWithConstructor extends Exception {
|
||||
public StandardExceptionWithConstructor(Integer x, Integer y) {
|
||||
super();
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") @lombok.Generated StandardExceptionWithConstructor() {
|
||||
this((java.lang.String) null, (java.lang.Throwable) null);
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") @lombok.Generated StandardExceptionWithConstructor(final java.lang.String message) {
|
||||
this(message, (java.lang.Throwable) null);
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") @lombok.Generated StandardExceptionWithConstructor(final java.lang.Throwable cause) {
|
||||
this(((cause != null) ? cause.getMessage() : null), cause);
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") @lombok.Generated 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