1 2 3 4 5 6 7 8 9
//CONF: lombok.nonNull.exceptionType = IllegalArgumentException public class NonNullWithAlternateException { @lombok.NonNull @lombok.Setter private String test; public void testMethod(@lombok.NonNull String arg) { System.out.println(arg); } }