diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2019-05-06 22:48:11 +0200 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2019-05-06 22:48:11 +0200 |
commit | e69a991fcb141fb24de8afb433c753d35821b1c3 (patch) | |
tree | e396b9e38e86fa7a08568d8c59d75b29803dbd0e /src/core/lombok/eclipse/handlers/HandleSetter.java | |
parent | d41e804fe73faed5f8b90f4b472728bc3a0c85b7 (diff) | |
download | lombok-e69a991fcb141fb24de8afb433c753d35821b1c3.tar.gz lombok-e69a991fcb141fb24de8afb433c753d35821b1c3.tar.bz2 lombok-e69a991fcb141fb24de8afb433c753d35821b1c3.zip |
[fixes #2120] ecj was not generating explicit nullchecks for builder-setters.
Diffstat (limited to 'src/core/lombok/eclipse/handlers/HandleSetter.java')
-rw-r--r-- | src/core/lombok/eclipse/handlers/HandleSetter.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lombok/eclipse/handlers/HandleSetter.java b/src/core/lombok/eclipse/handlers/HandleSetter.java index 529a7d19..d70d4acd 100644 --- a/src/core/lombok/eclipse/handlers/HandleSetter.java +++ b/src/core/lombok/eclipse/handlers/HandleSetter.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009-2017 The Project Lombok Authors. + * Copyright (C) 2009-2019 The Project Lombok Authors. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -238,7 +238,7 @@ public class HandleSetter extends EclipseAnnotationHandler<Setter> { Annotation[] copyableAnnotations = findCopyableAnnotations(fieldNode); List<Statement> statements = new ArrayList<Statement>(5); - if (!hasNonNullAnnotations(fieldNode)) { + if (!hasNonNullAnnotations(fieldNode) && !hasNonNullAnnotations(fieldNode, onParam)) { statements.add(assignment); } else { Statement nullCheck = generateNullCheck(field, sourceNode); |