Fix default empty collections when collection is optional (#18080)

* Fix optional empty collection as default

* Fix test

* Fix test
This commit is contained in:
Dennis Melzer
2024-03-14 13:28:27 +01:00
committed by GitHub
parent 6075b8a8f1
commit 96bf7ac915
495 changed files with 1548 additions and 1481 deletions

View File

@@ -73,7 +73,7 @@ public class Pet {
public static final String SERIALIZED_NAME_TAGS = "tags";
@SerializedName(SERIALIZED_NAME_TAGS)
private List<Tag> tags;
private List<Tag> tags = new ArrayList<>();
/**
* pet status in the store