diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2021-03-24 06:20:02 +0100 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2021-03-24 06:22:15 +0100 |
commit | 52a31bc4ae2806907194d32567a820c670670357 (patch) | |
tree | 0c5322c9c41fffe091d72834d9e5981f077e6c7b /src/core/lombok/javac | |
parent | 3d7754e269ec84604d43be97a684bb26b519c6b9 (diff) | |
download | lombok-52a31bc4ae2806907194d32567a820c670670357.tar.gz lombok-52a31bc4ae2806907194d32567a820c670670357.tar.bz2 lombok-52a31bc4ae2806907194d32567a820c670670357.zip |
[records] [`@NonNull`] eclipse impl onfthe `@NonNull` on record components feature.
All tests passing.
Diffstat (limited to 'src/core/lombok/javac')
-rw-r--r-- | src/core/lombok/javac/handlers/HandleNonNull.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/lombok/javac/handlers/HandleNonNull.java b/src/core/lombok/javac/handlers/HandleNonNull.java index 8e5b0030..786a7659 100644 --- a/src/core/lombok/javac/handlers/HandleNonNull.java +++ b/src/core/lombok/javac/handlers/HandleNonNull.java @@ -219,6 +219,8 @@ public class HandleNonNull extends JavacAnnotationHandler<NonNull> { JCVariableDecl fDecl = (JCVariableDecl) annotationNode.up().get(); if ((fDecl.mods.flags & RECORD) != 0) { + // well, these kinda double as parameters (of the compact constructor), so we do some work here. + List<JCMethodDecl> compactConstructors = addCompactConstructorIfNeeded(annotationNode.up().up(), annotationNode); for (JCMethodDecl ctr : compactConstructors) { addNullCheckIfNeeded(ctr, annotationNode.up(), annotationNode); |