aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/eclipse
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2017-09-18 22:56:16 +0200
committerRoel Spilker <r.spilker@gmail.com>2017-09-18 22:56:16 +0200
commit4597e069dc926ed2f0e147fd0cdbc51e1edc7c23 (patch)
tree7a87ea41731eb3ef3700db4a41ca669647f4acdc /src/core/lombok/eclipse
parente92e285d95e0fb08c32e7059f85806a30985084b (diff)
parent78e526690c22f1c5a1c93705076229ff32284741 (diff)
downloadlombok-4597e069dc926ed2f0e147fd0cdbc51e1edc7c23.tar.gz
lombok-4597e069dc926ed2f0e147fd0cdbc51e1edc7c23.tar.bz2
lombok-4597e069dc926ed2f0e147fd0cdbc51e1edc7c23.zip
Merge branch 'master' of https://github.com/kchirls/lombok into kchirls-master
Fixes #869, fixes #1018
Diffstat (limited to 'src/core/lombok/eclipse')
-rw-r--r--src/core/lombok/eclipse/handlers/HandleConstructor.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lombok/eclipse/handlers/HandleConstructor.java b/src/core/lombok/eclipse/handlers/HandleConstructor.java
index 856f3611..3469e6bf 100644
--- a/src/core/lombok/eclipse/handlers/HandleConstructor.java
+++ b/src/core/lombok/eclipse/handlers/HandleConstructor.java
@@ -350,7 +350,7 @@ public class HandleConstructor {
Annotation[] nonNulls = findAnnotations(field, NON_NULL_PATTERN);
Annotation[] nullables = findAnnotations(field, NULLABLE_PATTERN);
if (nonNulls.length != 0) {
- Statement nullCheck = generateNullCheck(field, sourceNode);
+ Statement nullCheck = generateNullCheck(parameter, sourceNode);
if (nullCheck != null) nullChecks.add(nullCheck);
}
parameter.annotations = copyAnnotations(source, nonNulls, nullables);