Skip to content

Commit

Permalink
more info added for exclude
Browse files Browse the repository at this point in the history
  • Loading branch information
a1shadows committed Nov 20, 2024
1 parent 407eb80 commit 14ba36f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/lombok/Builder.java
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 14ba36f

Please sign in to comment.