Thanks Mat
You are partially correct - @NoArgConstructor will generate a constructor with no parameters.
However, "fields are initialized with 0 / false / null". It does not say it respects @Builder.Default values.
Here is the example:
@NoArgsConstructor
@Builder
public class Book {
@Builder.Default
public final String title = "Book";
@Builder.Default
public final String author = "Agatha christie";
}
The class is failed to compile. Here is the error:
java: constructor Book in class app.Book cannot be applied to given types;
required: no arguments
found: java.lang.String,java.lang.String
reason: actual and formal argument lists differ in length
I am trying with 1.18.30
Let me know if I am missing something