aboutsummaryrefslogtreecommitdiff
path: root/src/lombok/javac/handlers/HandleGetter.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-08-27 23:05:14 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-08-27 23:05:14 +0200
commitfe0da3f53f1e88b704e21463cc5fea3d998e394a (patch)
treefa97c0d94a562dd7dd862a5d8e6e2f1ac432d060 /src/lombok/javac/handlers/HandleGetter.java
parente6bb460e2b1ba49698e5306ddcb5ce38748e2dfc (diff)
downloadlombok-fe0da3f53f1e88b704e21463cc5fea3d998e394a.tar.gz
lombok-fe0da3f53f1e88b704e21463cc5fea3d998e394a.tar.bz2
lombok-fe0da3f53f1e88b704e21463cc5fea3d998e394a.zip
Now @Nullable is also copied over.
Diffstat (limited to 'src/lombok/javac/handlers/HandleGetter.java')
-rw-r--r--src/lombok/javac/handlers/HandleGetter.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lombok/javac/handlers/HandleGetter.java b/src/lombok/javac/handlers/HandleGetter.java
index 370a405b..774a9955 100644
--- a/src/lombok/javac/handlers/HandleGetter.java
+++ b/src/lombok/javac/handlers/HandleGetter.java
@@ -128,8 +128,9 @@ public class HandleGetter implements JavacAnnotationHandler<Getter> {
List<JCExpression> throwsClauses = List.nil();
JCExpression annotationMethodDefaultValue = null;
- List<JCAnnotation> annotations = findNonNullAnnotations(field);
- return treeMaker.MethodDef(treeMaker.Modifiers(access, annotations), methodName, methodType,
+ List<JCAnnotation> nonNulls = findAnnotations(field, NON_NULL_PATTERN);
+ List<JCAnnotation> nullables = findAnnotations(field, NULLABLE_PATTERN);
+ return treeMaker.MethodDef(treeMaker.Modifiers(access, nonNulls.appendList(nullables)), methodName, methodType,
methodGenericParams, parameters, throwsClauses, methodBody, annotationMethodDefaultValue);
}
}