diff options
author | Roel Spilker <r.spilker@gmail.com> | 2018-06-04 23:36:06 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2018-06-04 23:36:45 +0200 |
commit | a74db7c10c61c7a18e8fed774cac1e0cde534009 (patch) | |
tree | 46106687a476be3a940efbfb27c98c8d5ef0912a /src/core/lombok/eclipse | |
parent | b8e85f5dc7044e9a4bd43c41786bdda2a38f50ac (diff) | |
download | lombok-a74db7c10c61c7a18e8fed774cac1e0cde534009.tar.gz lombok-a74db7c10c61c7a18e8fed774cac1e0cde534009.tar.bz2 lombok-a74db7c10c61c7a18e8fed774cac1e0cde534009.zip |
Make `extraPrivate` opt-in instead of opt-out. Fixes #1708
Diffstat (limited to 'src/core/lombok/eclipse')
-rw-r--r-- | src/core/lombok/eclipse/handlers/HandleConstructor.java | 2 |
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 f9029319..eb7fd711 100644 --- a/src/core/lombok/eclipse/handlers/HandleConstructor.java +++ b/src/core/lombok/eclipse/handlers/HandleConstructor.java @@ -214,7 +214,7 @@ public class HandleConstructor { if (!isDirectDescendantOfObject(typeNode)) return; Boolean v = typeNode.getAst().readConfiguration(ConfigurationKeys.NO_ARGS_CONSTRUCTOR_EXTRA_PRIVATE); - if (v != null && !v) return; + if (v == null || !v) return; List<EclipseNode> fields = findFinalFields(typeNode); generate(typeNode, AccessLevel.PRIVATE, fields, true, null, SkipIfConstructorExists.NO, Collections.<Annotation>emptyList(), sourceNode, true); |