diff options
author | Roel Spilker <r.spilker@gmail.com> | 2009-08-01 01:42:52 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2009-08-01 01:42:52 +0200 |
commit | f2c837bb47771a7eba5ad5a885af162d8d133559 (patch) | |
tree | 23be7f4b58a82b3c573edcd0e927d55cb4c7a290 /src/lombok/javac/handlers/HandleGetter.java | |
parent | 0cfa9e99d99fc353d0c486e96cc53f5214ab031c (diff) | |
download | lombok-f2c837bb47771a7eba5ad5a885af162d8d133559.tar.gz lombok-f2c837bb47771a7eba5ad5a885af162d8d133559.tar.bz2 lombok-f2c837bb47771a7eba5ad5a885af162d8d133559.zip |
@Setter will copy all NotNull and NonNull (case-insensitive) annotations to the parameter
@Getter will copy them to the getter method
Added @NonNull to lombok to support null-checks in the setter
Diffstat (limited to 'src/lombok/javac/handlers/HandleGetter.java')
-rw-r--r-- | src/lombok/javac/handlers/HandleGetter.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lombok/javac/handlers/HandleGetter.java b/src/lombok/javac/handlers/HandleGetter.java index 3d3227e4..370a405b 100644 --- a/src/lombok/javac/handlers/HandleGetter.java +++ b/src/lombok/javac/handlers/HandleGetter.java @@ -128,7 +128,8 @@ public class HandleGetter implements JavacAnnotationHandler<Getter> { List<JCExpression> throwsClauses = List.nil(); JCExpression annotationMethodDefaultValue = null; - return treeMaker.MethodDef(treeMaker.Modifiers(access, List.<JCAnnotation>nil()), methodName, methodType, + List<JCAnnotation> annotations = findNonNullAnnotations(field); + return treeMaker.MethodDef(treeMaker.Modifiers(access, annotations), methodName, methodType, methodGenericParams, parameters, throwsClauses, methodBody, annotationMethodDefaultValue); } } |