Charles Flynn
Charles Flynn
Just realised I can use this option to overwrite it: `boolean publicBuilderConstructors() default false;` So that solves my problem, though I wonder if the default should be true :)
Though the above doesn't help with Staged builders as using the public constructor bypasses the staging...
This is where staged builders shine for me. Gives compile safety of must specify parameters without turning your builder constructor into a copy of the actual object constructor.
Running into the problem with Records myself. e.g. ``` record Test(Map someMap) { public Test { if (someMap == null) someMap = Map.of(); // IntelliJ warns this will always be...
Yeah deserializing into an all nullable structure or the like and then manually validating is going to work, but it's typically boilerplate we expect our deserialization framework to deal with....