aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/eclipse
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2017-09-18 23:20:08 +0200
committerRoel Spilker <r.spilker@gmail.com>2017-09-18 23:20:08 +0200
commit49a4342088b4b7be540018fdc91aeeaeca8d1820 (patch)
tree2a2ce1a1cd10d5b18cb1fadbf21aaa0dcff7435f /src/core/lombok/eclipse
parente92e285d95e0fb08c32e7059f85806a30985084b (diff)
parentafb1fb88883d4b3707de3b97fb44253a725437b7 (diff)
downloadlombok-49a4342088b4b7be540018fdc91aeeaeca8d1820.tar.gz
lombok-49a4342088b4b7be540018fdc91aeeaeca8d1820.tar.bz2
lombok-49a4342088b4b7be540018fdc91aeeaeca8d1820.zip
Merge branch 'kchirls-master'
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);