From fe0da3f53f1e88b704e21463cc5fea3d998e394a Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Thu, 27 Aug 2009 23:05:14 +0200 Subject: Now @Nullable is also copied over. --- src/lombok/javac/handlers/HandleGetter.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/lombok/javac/handlers/HandleGetter.java') 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 { List throwsClauses = List.nil(); JCExpression annotationMethodDefaultValue = null; - List annotations = findNonNullAnnotations(field); - return treeMaker.MethodDef(treeMaker.Modifiers(access, annotations), methodName, methodType, + List nonNulls = findAnnotations(field, NON_NULL_PATTERN); + List nullables = findAnnotations(field, NULLABLE_PATTERN); + return treeMaker.MethodDef(treeMaker.Modifiers(access, nonNulls.appendList(nullables)), methodName, methodType, methodGenericParams, parameters, throwsClauses, methodBody, annotationMethodDefaultValue); } } -- cgit