From fc04b74c67f05b1ba099275645b75e6373ac3b5a Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Thu, 27 Feb 2020 22:26:36 +0100 Subject: [fixes #2377] documentation about configkey lombok.noArgsConstructor.extraPrivate was incorrect --- src/core/lombok/ConfigurationKeys.java | 4 ++-- website/templates/features/Data.html | 4 ++++ website/templates/features/Value.html | 4 ++-- website/templates/features/constructor.html | 4 ++++ 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/core/lombok/ConfigurationKeys.java b/src/core/lombok/ConfigurationKeys.java index 32c1f714..8a028858 100644 --- a/src/core/lombok/ConfigurationKeys.java +++ b/src/core/lombok/ConfigurationKeys.java @@ -166,9 +166,9 @@ public class ConfigurationKeys { /** * lombok configuration: {@code lombok.noArgsConstructor.extraPrivate} = {@code true} | {@code false}. * - * If {@code true} (default), @Data and @Value will also generate a private no-args constructor, if there isn't already one, setting all fields to their default values. + * If {@code true}, @Data and @Value will also generate a private no-args constructor, if there isn't already one, setting all fields to their default values. */ - public static final ConfigurationKey NO_ARGS_CONSTRUCTOR_EXTRA_PRIVATE = new ConfigurationKey("lombok.noArgsConstructor.extraPrivate", "Generate a private no-args constructor for @Data and @Value (default: true).") {}; + public static final ConfigurationKey NO_ARGS_CONSTRUCTOR_EXTRA_PRIVATE = new ConfigurationKey("lombok.noArgsConstructor.extraPrivate", "Generate a private no-args constructor for @Data and @Value (default: false).") {}; /** * lombok configuration: {@code lombok.requiredArgsConstructor.flagUsage} = {@code WARNING} | {@code ERROR}. diff --git a/website/templates/features/Data.html b/website/templates/features/Data.html index 36278819..f8a6c4d9 100644 --- a/website/templates/features/Data.html +++ b/website/templates/features/Data.html @@ -26,6 +26,10 @@ lombok.data.flagUsage = [warning | error] (default: not set)
Lombok will flag any usage of @Data as a warning or error if configured. +
+ lombok.noArgsConstructor.extraPrivate = [true | false] (default: false) +
+ If true, lombok will generate a private no-args constructor for any @Data annotated class, which sets all fields to default values (null / 0 / false).
diff --git a/website/templates/features/Value.html b/website/templates/features/Value.html index f6ef9403..c41b6b10 100644 --- a/website/templates/features/Value.html +++ b/website/templates/features/Value.html @@ -30,9 +30,9 @@
Lombok will flag any usage of @Value as a warning or error if configured.
- lombok.val.flagUsage = [warning | error] (default: not set) + lombok.noArgsConstructor.extraPrivate = [true | false] (default: false)
- Lombok will flag any usage of val as a warning or error if configured. + If true, lombok will generate a private no-args constructor for any @Value annotated class, which sets all fields to default values (null / 0 / false).
diff --git a/website/templates/features/constructor.html b/website/templates/features/constructor.html index 02380319..f9ee775d 100644 --- a/website/templates/features/constructor.html +++ b/website/templates/features/constructor.html @@ -42,6 +42,10 @@ lombok.copyableAnnotations = [A list of fully qualified types] (default: empty list)
Lombok will copy any of these annotations from the field to the constructor parameter, the setter parameter, and the getter method. Note that lombok ships with a bunch of annotations 'out of the box' which are known to be copyable: All popular nullable/nonnull annotations. +
+ lombok.noArgsConstructor.extraPrivate = [true | false] (default: false) +
+ If true, lombok will generate a private no-args constructor for any @Value or @Data annotated class, which sets all fields to default values (null / 0 / false).
-- cgit