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:
parent
4a21dea47f
commit
b627e1cc67
@ -988,8 +988,8 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} {
|
||||
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);
|
||||
}
|
||||
|
@ -988,8 +988,8 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} {
|
||||
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);
|
||||
}
|
||||
|
@ -767,8 +767,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);
|
||||
}
|
||||
|
@ -767,8 +767,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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -767,8 +767,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);
|
||||
}
|
||||
|
@ -990,8 +990,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);
|
||||
}
|
||||
|
@ -816,8 +816,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);
|
||||
}
|
||||
|
@ -767,8 +767,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);
|
||||
}
|
||||
|
@ -892,8 +892,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);
|
||||
}
|
||||
|
@ -892,8 +892,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);
|
||||
}
|
||||
|
@ -990,8 +990,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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user