forked from loafle/openapi-generator-original
[Bug] [Java] Fix raw type compilation warning in ApiClient for jersey2 and jersey3 (#19966)
* Add type annotation to raw type Iterable in jersey templates * Regenerate samples
This commit is contained in:
@@ -908,8 +908,8 @@ public class ApiClient extends JavaTimeFormatter {
|
||||
if (contentType.startsWith("multipart/form-data")) {
|
||||
MultiPart multiPart = new MultiPart();
|
||||
for (Entry<String, Object> param: formParams.entrySet()) {
|
||||
if (param.getValue() instanceof Iterable) {
|
||||
((Iterable)param.getValue()).forEach(v -> addParamToMultipart(v, param.getKey(), multiPart));
|
||||
if (param.getValue() instanceof Iterable<?>) {
|
||||
((Iterable<?>)param.getValue()).forEach(v -> addParamToMultipart(v, param.getKey(), multiPart));
|
||||
} else {
|
||||
addParamToMultipart(param.getValue(), param.getKey(), multiPart);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user