liubao68 commented on issue #2081:
URL:
https://github.com/apache/servicecomb-java-chassis/issues/2081#issuecomment-747153718
你能发下你的代码是怎么写的吗?前面的讨论和例子,实际上都说明了你的用法不会返回 new String[]{null}。 我测试也没发现这种情况。
可以按照下面格式反馈下:
业务代码:
```
@Path("queryListCSV")
@GET
public String queryListCSV(@ApiParam(collectionFormat = "csv")
@QueryParam("queryList") List<String> queryList) {
return queryList == null ? "null" : queryList.size() + ":" +
queryList.toString();
}
```
浏览器请求:
```
http://localhost:8080/queryList/queryListCSV?queryList=
```
预期结果:
```
"1:[]"
```
浏览器请求:
```
http://localhost:8080/queryList/queryListCSV
```
预期结果:
```
"0:[]"
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]