aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2014-05-27 20:29:54 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2014-05-27 20:29:54 +0200
commit713822db9894cf99184aff57b3387f99846aa870 (patch)
tree7b5ee62283336897fda2b4b84f5c1472358b6dce /test/transform/resource/before
parent4b878f9ba996f852ce555c3024512ae34e34774e (diff)
downloadlombok-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/before')
-rw-r--r--test/transform/resource/before/NonNullWithAlternateException.java2
-rw-r--r--test/transform/resource/before/NonNullWithMistypedException.java7
2 files changed, 1 insertions, 8 deletions
diff --git a/test/transform/resource/before/NonNullWithAlternateException.java b/test/transform/resource/before/NonNullWithAlternateException.java
index 780afc39..c47f5727 100644
--- a/test/transform/resource/before/NonNullWithAlternateException.java
+++ b/test/transform/resource/before/NonNullWithAlternateException.java
@@ -1,4 +1,4 @@
-//CONF: lombok.nonNull.exceptionType = java.lang.IllegalArgumentException
+//CONF: lombok.nonNull.exceptionType = IllegalArgumentException
public class NonNullWithAlternateException {
@lombok.NonNull @lombok.Setter private String test;
diff --git a/test/transform/resource/before/NonNullWithMistypedException.java b/test/transform/resource/before/NonNullWithMistypedException.java
deleted file mode 100644
index 6e1fb880..00000000
--- a/test/transform/resource/before/NonNullWithMistypedException.java
+++ /dev/null
@@ -1,7 +0,0 @@
-//CONF: lombok.nonNull.exceptionType = 12345
-//skip compare content: Just testing appropriate generation of error message.
-
-@lombok.Data
-public class NonNullWithMistypedException {
- private @lombok.NonNull String test;
-}