some nullable params for skip/allow nulls accepting methods
@@ -1398,7 +1398,7 @@ checkNotIsSet([v.names.isSet](), "[v.names.raw]");
[atCanIgnoreReturnValue type]
[eachLine v.initializerInjectedAnnotations]
[deprecation v]
- [builderInitAccess v]final [builderReturnType type] [v.names.add]([v.unwrappedElementType] element) {
+ [builderInitAccess v]final [builderReturnType type] [v.names.add]([atElementNullable v][v.unwrappedElementType] element) {
[if v.nullableCollector]
if (this.[v.name] == null) {
[defineOrResetBuildingFieldAlt v false false]
@@ -1763,7 +1763,7 @@ checkNotIsSet([v.names.isSet](), "[v.names.raw]");
[atCanIgnoreReturnValue type]
[deprecation v]
[if v.jacksonAnyGetter]@com.fasterxml.jackson.annotation.JsonAnySetter[/if]
- [builderInitAccess v]final [builderReturnType type] [v.names.put]([uK] key, [uV] value) {
+ [builderInitAccess v]final [builderReturnType type] [v.names.put]([atElementNullable v][uK] key, [atElementNullable v][uV] value) {
[if v.nullableCollector]
if (this.[v.name] == null) {
[defineOrResetBuildingFieldAlt v false false]
@@ -4178,6 +4178,8 @@ private static final long serialVersionUID = [literal serialVersion];
[/if]
[/template]
+[template atElementNullable Attribute a][if not a.nullElements.ban][atNullable a][/if][/template]
+
[-- templates below are one-liners so they auto-inlined --]
[template topSimplePrefix Type type][if topLevelSimple][topLevelSimple].[else][type.topSimple].[/if][/template]
