From aee4e76d864e01b5d453409e703ad54852fa57bb Mon Sep 17 00:00:00 2001
From: Reinier Zwitserloot
For boolean
fields that start with is
immediately followed by a title-case letter, nothing is prefixed to generate the wither name.
- Any annotations named @NonNull
(case insensitive) on the field are interpreted as: This field must not ever hold null. Therefore, these annotations result in an explicit null check in the generated wither. Also, these annotations (as well as any annotation named @Nullable
or @CheckForNull
) are copied to wither parameter.
+ Various well known annotations about nullity cause null checks to be inserted and will be copied to the parameter. See Getter/Setter documentation's small print for more information.