From 9d8c4e4099bef9b7854cc5d77bc996c3b3bf0e41 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Tue, 6 Oct 2015 00:25:32 +0200 Subject: New feature: FieldDefaults can now be configured to apply to _every_ file, regardless of annotations. --- website/features/configuration.html | 9 +++++++++ website/features/experimental/FieldDefaults.html | 4 ++++ 2 files changed, 13 insertions(+) (limited to 'website') diff --git a/website/features/configuration.html b/website/features/configuration.html index 7e79a9c0..21864409 100644 --- a/website/features/configuration.html +++ b/website/features/configuration.html @@ -85,6 +85,15 @@ lombok.extern.findbugs.addSuppressFBWarnings = true +
+

Config keys that can even affect source files with 0 lombok annotations

+

+

+ lombok.fieldDefaults.defaultPrivate = true
+ lombok.fieldDefaults.defaultFinal = true +
+ Turning either of these options on means lombok will make every field in every source file final and/or private unless it has an explicit access modifier or annotation to suppress this. See the @FieldDefaults documentation for more. +
-- cgit