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/javac | |
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/javac')
-rw-r--r-- | src/core/lombok/javac/handlers/HandleConstructor.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lombok/javac/handlers/HandleConstructor.java b/src/core/lombok/javac/handlers/HandleConstructor.java index f4aa6fbf..32eb43b2 100644 --- a/src/core/lombok/javac/handlers/HandleConstructor.java +++ b/src/core/lombok/javac/handlers/HandleConstructor.java @@ -200,7 +200,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<JavacNode> fields = findFinalFields(typeNode); generate(typeNode, AccessLevel.PRIVATE, List.<JCAnnotation>nil(), fields, true, null, SkipIfConstructorExists.NO, source, true); |