diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-07-14 16:01:08 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-07-14 16:01:08 +0200 |
commit | d5ba04ca59f9e36ff1606d3520f6b90834da3cc9 (patch) | |
tree | 4f47a2ffd64c23d448c8e2132cba8626345bc187 /src | |
parent | e693672cd44ab0e648643f4b5c24b1c177ab6c84 (diff) | |
download | lombok-d5ba04ca59f9e36ff1606d3520f6b90834da3cc9.tar.gz lombok-d5ba04ca59f9e36ff1606d3520f6b90834da3cc9.tar.bz2 lombok-d5ba04ca59f9e36ff1606d3520f6b90834da3cc9.zip |
Added copying of @CheckForNull from a field to autogenerated getters and setters, just like @Nullable is copied.
Implements feature request issue 128.
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 6dce3a6a..140dfd2a 100644 --- a/src/core/lombok/core/handlers/TransformationsUtil.java +++ b/src/core/lombok/core/handlers/TransformationsUtil.java @@ -84,7 +84,7 @@ public class TransformationsUtil { "^(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 NULLABLE_PATTERN = Pattern.compile("^nullable$", Pattern.CASE_INSENSITIVE); + public static final Pattern NULLABLE_PATTERN = Pattern.compile("^(?:nullable|checkfornull)$", Pattern.CASE_INSENSITIVE); /** * Generates a getter name from a given field name. |