forked from loafle/openapi-generator-original
fix warning, update build.gradle, build.sbt (#11896)
This commit is contained in:
parent
fa9c7a669b
commit
a4d320489d
@ -1524,9 +1524,11 @@ public class ApiClient {
|
||||
File file = (File) param.getValue();
|
||||
addPartToMultiPartBuilder(mpBuilder, param.getKey(), file);
|
||||
} else if (param.getValue() instanceof List) {
|
||||
List<File> files = (List<File>) param.getValue();
|
||||
for (File file : files) {
|
||||
addPartToMultiPartBuilder(mpBuilder, param.getKey(), file);
|
||||
List list = (List) param.getValue();
|
||||
for (Object item: list) {
|
||||
if (item instanceof File) {
|
||||
addPartToMultiPartBuilder(mpBuilder, param.getKey(), (File) item);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + param.getKey() + "\"");
|
||||
|
@ -132,7 +132,7 @@ dependencies {
|
||||
implementation 'io.swagger.parser.v3:swagger-parser-v3:2.0.30'
|
||||
{{/dynamicOperations}}
|
||||
implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
|
||||
testImplementation 'junit:junit:4.13.2'
|
||||
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
|
||||
testImplementation 'org.mockito:mockito-core:3.12.4'
|
||||
}
|
||||
|
||||
|
@ -32,7 +32,7 @@ lazy val root = (project in file(".")).
|
||||
"jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile",
|
||||
"com.google.code.findbugs" % "jsr305" % "3.0.2" % "compile",
|
||||
"jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile",
|
||||
"junit" % "junit" % "4.13.2" % "test",
|
||||
"org.junit.jupiter" % "junit-jupiter-api" % "5.8.2" % "test",
|
||||
"com.novocode" % "junit-interface" % "0.10" % "test"
|
||||
)
|
||||
)
|
||||
|
@ -117,7 +117,7 @@ dependencies {
|
||||
implementation 'org.openapitools:jackson-databind-nullable:0.2.2'
|
||||
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
|
||||
implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
|
||||
testImplementation 'junit:junit:4.13.2'
|
||||
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
|
||||
testImplementation 'org.mockito:mockito-core:3.12.4'
|
||||
}
|
||||
|
||||
|
@ -21,7 +21,7 @@ lazy val root = (project in file(".")).
|
||||
"jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile",
|
||||
"com.google.code.findbugs" % "jsr305" % "3.0.2" % "compile",
|
||||
"jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile",
|
||||
"junit" % "junit" % "4.13.2" % "test",
|
||||
"org.junit.jupiter" % "junit-jupiter-api" % "5.8.2" % "test",
|
||||
"com.novocode" % "junit-interface" % "0.10" % "test"
|
||||
)
|
||||
)
|
||||
|
@ -1319,9 +1319,11 @@ public class ApiClient {
|
||||
File file = (File) param.getValue();
|
||||
addPartToMultiPartBuilder(mpBuilder, param.getKey(), file);
|
||||
} else if (param.getValue() instanceof List) {
|
||||
List<File> files = (List<File>) param.getValue();
|
||||
for (File file : files) {
|
||||
addPartToMultiPartBuilder(mpBuilder, param.getKey(), file);
|
||||
List list = (List) param.getValue();
|
||||
for (Object item: list) {
|
||||
if (item instanceof File) {
|
||||
addPartToMultiPartBuilder(mpBuilder, param.getKey(), (File) item);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + param.getKey() + "\"");
|
||||
|
@ -119,7 +119,7 @@ dependencies {
|
||||
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
|
||||
implementation 'io.swagger.parser.v3:swagger-parser-v3:2.0.30'
|
||||
implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
|
||||
testImplementation 'junit:junit:4.13.2'
|
||||
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
|
||||
testImplementation 'org.mockito:mockito-core:3.12.4'
|
||||
}
|
||||
|
||||
|
@ -23,7 +23,7 @@ lazy val root = (project in file(".")).
|
||||
"jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile",
|
||||
"com.google.code.findbugs" % "jsr305" % "3.0.2" % "compile",
|
||||
"jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile",
|
||||
"junit" % "junit" % "4.13.2" % "test",
|
||||
"org.junit.jupiter" % "junit-jupiter-api" % "5.8.2" % "test",
|
||||
"com.novocode" % "junit-interface" % "0.10" % "test"
|
||||
)
|
||||
)
|
||||
|
@ -1397,9 +1397,11 @@ public class ApiClient {
|
||||
File file = (File) param.getValue();
|
||||
addPartToMultiPartBuilder(mpBuilder, param.getKey(), file);
|
||||
} else if (param.getValue() instanceof List) {
|
||||
List<File> files = (List<File>) param.getValue();
|
||||
for (File file : files) {
|
||||
addPartToMultiPartBuilder(mpBuilder, param.getKey(), file);
|
||||
List list = (List) param.getValue();
|
||||
for (Object item: list) {
|
||||
if (item instanceof File) {
|
||||
addPartToMultiPartBuilder(mpBuilder, param.getKey(), (File) item);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + param.getKey() + "\"");
|
||||
|
@ -118,7 +118,7 @@ dependencies {
|
||||
implementation group: 'org.apache.oltu.oauth2', name: 'org.apache.oltu.oauth2.client', version: '1.0.1'
|
||||
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
|
||||
implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
|
||||
testImplementation 'junit:junit:4.13.2'
|
||||
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
|
||||
testImplementation 'org.mockito:mockito-core:3.12.4'
|
||||
}
|
||||
|
||||
|
@ -22,7 +22,7 @@ lazy val root = (project in file(".")).
|
||||
"jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile",
|
||||
"com.google.code.findbugs" % "jsr305" % "3.0.2" % "compile",
|
||||
"jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile",
|
||||
"junit" % "junit" % "4.13.2" % "test",
|
||||
"org.junit.jupiter" % "junit-jupiter-api" % "5.8.2" % "test",
|
||||
"com.novocode" % "junit-interface" % "0.10" % "test"
|
||||
)
|
||||
)
|
||||
|
@ -1398,9 +1398,11 @@ public class ApiClient {
|
||||
File file = (File) param.getValue();
|
||||
addPartToMultiPartBuilder(mpBuilder, param.getKey(), file);
|
||||
} else if (param.getValue() instanceof List) {
|
||||
List<File> files = (List<File>) param.getValue();
|
||||
for (File file : files) {
|
||||
addPartToMultiPartBuilder(mpBuilder, param.getKey(), file);
|
||||
List list = (List) param.getValue();
|
||||
for (Object item: list) {
|
||||
if (item instanceof File) {
|
||||
addPartToMultiPartBuilder(mpBuilder, param.getKey(), (File) item);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + param.getKey() + "\"");
|
||||
|
@ -118,7 +118,7 @@ dependencies {
|
||||
implementation group: 'org.apache.oltu.oauth2', name: 'org.apache.oltu.oauth2.client', version: '1.0.1'
|
||||
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
|
||||
implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
|
||||
testImplementation 'junit:junit:4.13.2'
|
||||
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
|
||||
testImplementation 'org.mockito:mockito-core:3.12.4'
|
||||
}
|
||||
|
||||
|
@ -22,7 +22,7 @@ lazy val root = (project in file(".")).
|
||||
"jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile",
|
||||
"com.google.code.findbugs" % "jsr305" % "3.0.2" % "compile",
|
||||
"jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile",
|
||||
"junit" % "junit" % "4.13.2" % "test",
|
||||
"org.junit.jupiter" % "junit-jupiter-api" % "5.8.2" % "test",
|
||||
"com.novocode" % "junit-interface" % "0.10" % "test"
|
||||
)
|
||||
)
|
||||
|
@ -1417,9 +1417,11 @@ public class ApiClient {
|
||||
File file = (File) param.getValue();
|
||||
addPartToMultiPartBuilder(mpBuilder, param.getKey(), file);
|
||||
} else if (param.getValue() instanceof List) {
|
||||
List<File> files = (List<File>) param.getValue();
|
||||
for (File file : files) {
|
||||
addPartToMultiPartBuilder(mpBuilder, param.getKey(), file);
|
||||
List list = (List) param.getValue();
|
||||
for (Object item: list) {
|
||||
if (item instanceof File) {
|
||||
addPartToMultiPartBuilder(mpBuilder, param.getKey(), (File) item);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + param.getKey() + "\"");
|
||||
|
Loading…
x
Reference in New Issue
Block a user