Added copying of @CheckForNull from a field to autogenerated getters and setters, just like @Nullable is copied.

Implements feature request issue 128.
This commit is contained in:
Reinier Zwitserloot committed 2010-07-14 16:01:08 +02:00
1 parent e693672cd4
commit d5ba04ca59
1 file changed
+1 -1
@@ -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.