aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/ConfigurationKeys.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2021-12-21 01:53:10 +0100
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2021-12-21 01:53:30 +0100
commit6d2a474e55db3937eafa5a6d089efd5ba75a62bf (patch)
tree0336d1388090961f8c52ff4999493f7ecb5a5820 /src/core/lombok/ConfigurationKeys.java
parentd71a880d7f9a207e4a121d0b98b54018e9403197 (diff)
downloadlombok-6d2a474e55db3937eafa5a6d089efd5ba75a62bf.tar.gz
lombok-6d2a474e55db3937eafa5a6d089efd5ba75a62bf.tar.bz2
lombok-6d2a474e55db3937eafa5a6d089efd5ba75a62bf.zip
[fixes #2849] Make ToString's onlyExplicitlyIncluded a config key.
Diffstat (limited to 'src/core/lombok/ConfigurationKeys.java')
-rw-r--r--src/core/lombok/ConfigurationKeys.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/lombok/ConfigurationKeys.java b/src/core/lombok/ConfigurationKeys.java
index 05550a06..457246e7 100644
--- a/src/core/lombok/ConfigurationKeys.java
+++ b/src/core/lombok/ConfigurationKeys.java
@@ -291,6 +291,13 @@ public class ConfigurationKeys {
*/
public static final ConfigurationKey<Boolean> TO_STRING_INCLUDE_FIELD_NAMES = new ConfigurationKey<Boolean>("lombok.toString.includeFieldNames", "Include the field names in the generated toString method (default = true).") {};
+ /**
+ * lombok configuration: {@code lombok.toString.onlyExplicitlyIncluded} = {@code true} | {@code false}.
+ *
+ * If {@code true}, require a {@code @ToString.Include} annotation on any fields/no-args methods you want to include in lombok's generated `@ToString` method. Otherwise, every (non-static, non-dollar-named) field is included by default (default = false).
+ */
+ public static final ConfigurationKey<Boolean> TO_STRING_ONLY_EXPLICITLY_INCLUDED = new ConfigurationKey<Boolean>("lombok.toString.onlyExplicitlyIncluded", "Include only fields/methods explicitly marked with @ToString.Include. Otherwise, include all non-static, non-dollar-named fields (default = false).") {};
+
// ----- Builder -----
/**