-
Notifications
You must be signed in to change notification settings - Fork 6k
Open
Description
when set containerDefaultToNull
to false. eg data
data will init as new ArrayList<>()
.
but when we set data
as null in request
{
"data": null
}
public void setData(List<@Size(min = 1, max = 64)String> data) {
this.data = data;
}
data was override to null.
epxected as empty array,should be follow example
public void setData(List<@Size(min = 1, max = 64)String> data) {
if(data== null){
return;
}
this.data = data;
}
Metadata
Metadata
Assignees
Labels
No labels