From 14ba36f30a858f11385d48d8844387393b2d50b3 Mon Sep 17 00:00:00 2001 From: Aditya Lahiri Date: Wed, 20 Nov 2024 18:32:50 +0530 Subject: [PATCH] more info added for exclude --- src/core/lombok/Builder.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/lombok/Builder.java b/src/core/lombok/Builder.java index 3090a2cefa..7fc89fc418 100644 --- a/src/core/lombok/Builder.java +++ b/src/core/lombok/Builder.java @@ -121,11 +121,12 @@ public @interface Default {} /** - * The field annotated with {@code @Exclude} will be excluded from the builder. + * The field annotated with {@code @Exclude} will be excluded from the builder. Excluded objects will be initialized as null + * and primitives with their default value. */ @Target(FIELD) @Retention(SOURCE) - public @interface Exclude {} + @interface Exclude {} /** @return Name of the method that creates a new builder instance. Default: {@code builder}. If the empty string, suppress generating the {@code builder} method. */ String builderMethodName() default "builder";