mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 14:16:11 +00:00
Added confkey to make @NonNull generate a different exception because of the IllegalArgumentException vs. NullPointerException that we really don’t want to get into.
This commit is contained in:
1 parent
57c92478a9
commit
4b878f9ba9
25 files changed
+252
-94
No files matched your search
@@ -0,0 +1,9 @@
|
||||
//CONF: lombok.nonNull.exceptionType = java.lang.IllegalArgumentException
|
||||
|
||||
public class NonNullWithAlternateException {
|
||||
@lombok.NonNull @lombok.Setter private String test;
|
||||
|
||||
public void testMethod(@lombok.NonNull String arg) {
|
||||
System.out.println(arg);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user