[Java]: Client resttemplate and webclient: array parameters of type integer in path badly generated (#4379)

* 4375: Client resttemplate and webclient: array parameters of type integer in path badly generated

* 4375: Fix samples

* 4375: Fix samples

* 4375: Fix samples
This commit is contained in:
Jorge Rodriguez
2019-11-12 09:15:34 +01:00
committed by William Cheng
parent 11bcb661a1
commit 94b58634a7
5 changed files with 8 additions and 8 deletions

View File

@@ -71,7 +71,7 @@ public class ApiClient {
this.separator = separator;
}
private String collectionToString(Collection<? extends CharSequence> collection) {
private String collectionToString(Collection<?> collection) {
return StringUtils.collectionToDelimitedString(collection, separator);
}
}
@@ -390,7 +390,7 @@ public class ApiClient {
* @param values The values of the parameter.
* @return String representation of the parameter
*/
public String collectionPathParameterToString(CollectionFormat collectionFormat, Collection<? extends CharSequence> values) {
public String collectionPathParameterToString(CollectionFormat collectionFormat, Collection<?> values) {
// create the value based on the collection format
if (CollectionFormat.MULTI.equals(collectionFormat)) {
// not valid for path params