From a74db7c10c61c7a18e8fed774cac1e0cde534009 Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Mon, 4 Jun 2018 23:36:06 +0200 Subject: Make `extraPrivate` opt-in instead of opt-out. Fixes #1708 --- src/core/lombok/eclipse/handlers/HandleConstructor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/lombok/eclipse') 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 fields = findFinalFields(typeNode); generate(typeNode, AccessLevel.PRIVATE, fields, true, null, SkipIfConstructorExists.NO, Collections.emptyList(), sourceNode, true); -- cgit