mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-31 06:11:44 +00:00
[issue #1347] When lombok generates constructors, it should call the @Builder.Default static method instead of initializing to null/0/false. This does that, for javac.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Value;
|
||||
import lombok.Builder;
|
||||
|
||||
@NoArgsConstructor @AllArgsConstructor @Builder @Value class ConstructorsWithBuilderDefaults {
|
||||
@Builder.Default int x = 5;
|
||||
}
|
||||
Reference in New Issue
Block a user