diff options
author | peichhorn <peichhor@web.de> | 2011-09-05 21:53:58 +0200 |
---|---|---|
committer | peichhorn <peichhor@web.de> | 2011-09-05 21:53:58 +0200 |
commit | 236c88fc5cb2444af353bec6370b43b915ed8fdb (patch) | |
tree | f83feee5039b8963d9605ab2d12ded91b9d3e557 /src | |
parent | 25fbdf0c5bf1e287d4a705126d0d46a1437e7674 (diff) | |
download | lombok-236c88fc5cb2444af353bec6370b43b915ed8fdb.tar.gz lombok-236c88fc5cb2444af353bec6370b43b915ed8fdb.tar.bz2 lombok-236c88fc5cb2444af353bec6370b43b915ed8fdb.zip |
fixed Issue 271: @NotNull annotations should introduce a null check
Diffstat (limited to 'src')
-rw-r--r-- | src/core/lombok/core/handlers/TransformationsUtil.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lombok/core/handlers/TransformationsUtil.java b/src/core/lombok/core/handlers/TransformationsUtil.java index 50c1ca02..3c1fc421 100644 --- a/src/core/lombok/core/handlers/TransformationsUtil.java +++ b/src/core/lombok/core/handlers/TransformationsUtil.java @@ -72,7 +72,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("^nonnull$", Pattern.CASE_INSENSITIVE); + public static final Pattern NON_NULL_PATTERN = Pattern.compile("^(?:notnull|nonnull)$", Pattern.CASE_INSENSITIVE); public static final Pattern NULLABLE_PATTERN = Pattern.compile("^(?:nullable|checkfornull)$", Pattern.CASE_INSENSITIVE); /** |