diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2014-05-27 20:29:54 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2014-05-27 20:29:54 +0200 |
commit | 713822db9894cf99184aff57b3387f99846aa870 (patch) | |
tree | 7b5ee62283336897fda2b4b84f5c1472358b6dce /test/transform/resource/after-delombok | |
parent | 4b878f9ba996f852ce555c3024512ae34e34774e (diff) | |
download | lombok-713822db9894cf99184aff57b3387f99846aa870.tar.gz lombok-713822db9894cf99184aff57b3387f99846aa870.tar.bz2 lombok-713822db9894cf99184aff57b3387f99846aa870.zip |
Changed the lombok.nonNull.exceptionType configkey to be an enum, partly to enforce only sensible exceptions and partly to make it possible to have the message be ‘x is null’ when throwing IAEs.
Diffstat (limited to 'test/transform/resource/after-delombok')
-rw-r--r-- | test/transform/resource/after-delombok/NonNullWithAlternateException.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/transform/resource/after-delombok/NonNullWithAlternateException.java b/test/transform/resource/after-delombok/NonNullWithAlternateException.java index d4a2f657..686a1219 100644 --- a/test/transform/resource/after-delombok/NonNullWithAlternateException.java +++ b/test/transform/resource/after-delombok/NonNullWithAlternateException.java @@ -3,14 +3,14 @@ public class NonNullWithAlternateException { private String test; public void testMethod(@lombok.NonNull String arg) { if (arg == null) { - throw new java.lang.IllegalArgumentException("arg"); + throw new java.lang.IllegalArgumentException("arg is null"); } System.out.println(arg); } @java.lang.SuppressWarnings("all") public void setTest(@lombok.NonNull final String test) { if (test == null) { - throw new java.lang.IllegalArgumentException("test"); + throw new java.lang.IllegalArgumentException("test is null"); } this.test = test; } |