[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:
ksn-partisia
2024-10-30 07:24:32 +01:00
committed by GitHub
parent 4a21dea47f
commit b627e1cc67
13 changed files with 26 additions and 26 deletions

View File

@@ -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);
}