[Java] remove initialization for optional list property (#5363)

* set list to null in java if not required

* update petstore sample for java server stub

* update sample for msf4j

* add null assignment to new list/map in java
This commit is contained in:
wing328
2017-04-11 19:07:48 +08:00
committed by GitHub
parent d3ac4b686a
commit e3d04ee01f
164 changed files with 275 additions and 245 deletions

View File

@@ -25,7 +25,7 @@ public class Pet {
private List<String> photoUrls = new ArrayList<String>();
@JsonProperty("tags")
private List<Tag> tags = new ArrayList<Tag>();
private List<Tag> tags;
/**
* pet status in the store