aboutsummaryrefslogtreecommitdiff
path: root/src/lombok/core/TransformationsUtil.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-09-03 01:36:36 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-09-03 01:36:36 +0200
commitc46bf8576fb2424c107f970a90bc57bc6ed5204a (patch)
tree88d538a5b702d57745d647ec7f367bf68d3a87ab /src/lombok/core/TransformationsUtil.java
parent2b51cf84f4b11fb458c566317b4c2ecc94c8631b (diff)
downloadlombok-c46bf8576fb2424c107f970a90bc57bc6ed5204a.tar.gz
lombok-c46bf8576fb2424c107f970a90bc57bc6ed5204a.tar.bz2
lombok-c46bf8576fb2424c107f970a90bc57bc6ed5204a.zip
"Fixed" issue #43" - problems with javax.validation.NotNull, which lombok used to copy over to the method parameter of generated setters and constructors, but NotNull is not valid there. We've fixed it by limiting ourselves to annotations named 'NonNull', popular versions of which are legal in all the places we copy them to.
This leaves IDEA's NotNull out in the cold, but, lombok doesn't support IDEA anyway. This is a workaround - once lombok supports type introspection we'll fix this properly.
Diffstat (limited to 'src/lombok/core/TransformationsUtil.java')
-rw-r--r--src/lombok/core/TransformationsUtil.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lombok/core/TransformationsUtil.java b/src/lombok/core/TransformationsUtil.java
index 5b7400a3..ec35f1b9 100644
--- a/src/lombok/core/TransformationsUtil.java
+++ b/src/lombok/core/TransformationsUtil.java
@@ -83,7 +83,7 @@ public class TransformationsUtil {
public static final Pattern PRIMITIVE_TYPE_NAME_PATTERN = Pattern.compile(
"^(boolean|byte|short|int|long|float|double|char)$");
- public static final Pattern NON_NULL_PATTERN = Pattern.compile("^no[tn]null$", Pattern.CASE_INSENSITIVE);
+ public static final Pattern NON_NULL_PATTERN = Pattern.compile("^nonnull$", Pattern.CASE_INSENSITIVE);
public static final Pattern NULLABLE_PATTERN = Pattern.compile("^nullable$", Pattern.CASE_INSENSITIVE);
/**