[Java][webclient] Fix deprecation warning: BodyInserters.fromObject (#8963)

* Fix deprecation warning: BodyInserters.fromObject

See for more information #8553

* [Java][webclient] Upgrade to spring 5.2.13
This commit is contained in:
Backfighter 2021-03-13 17:12:48 +01:00 committed by GitHub
parent 4e2ece4b51
commit ad603f44fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 6 deletions

View File

@ -517,7 +517,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} {
} else if(MediaType.MULTIPART_FORM_DATA.equals(contentType)) {
return BodyInserters.fromMultipartData(formParams);
} else {
return obj != null ? BodyInserters.fromObject(obj) : null;
return obj != null ? BodyInserters.fromValue(obj) : null;
}
}

View File

@ -124,7 +124,7 @@ if(hasProperty('target') && target == 'android') {
ext {
swagger_annotations_version = "1.6.2"
spring_web_version = "5.0.16.RELEASE"
spring_web_version = "5.2.13.RELEASE"
jackson_version = "2.11.3"
jackson_databind_version = "2.11.3"
{{#openApiNullable}}

View File

@ -149,7 +149,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<swagger-annotations-version>1.6.2</swagger-annotations-version>
<spring-web-version>5.0.16.RELEASE</spring-web-version>
<spring-web-version>5.2.13.RELEASE</spring-web-version>
<jackson-version>2.11.3</jackson-version>
<jackson-databind-version>2.11.3</jackson-databind-version>
{{#openApiNullable}}

View File

@ -112,7 +112,7 @@ if(hasProperty('target') && target == 'android') {
ext {
swagger_annotations_version = "1.6.2"
spring_web_version = "5.0.16.RELEASE"
spring_web_version = "5.2.13.RELEASE"
jackson_version = "2.11.3"
jackson_databind_version = "2.11.3"
jackson_databind_nullable_version = "0.2.1"

View File

@ -126,7 +126,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<swagger-annotations-version>1.6.2</swagger-annotations-version>
<spring-web-version>5.0.16.RELEASE</spring-web-version>
<spring-web-version>5.2.13.RELEASE</spring-web-version>
<jackson-version>2.11.3</jackson-version>
<jackson-databind-version>2.11.3</jackson-databind-version>
<jackson-databind-nullable-version>0.2.1</jackson-databind-nullable-version>

View File

@ -502,7 +502,7 @@ public class ApiClient extends JavaTimeFormatter {
} else if(MediaType.MULTIPART_FORM_DATA.equals(contentType)) {
return BodyInserters.fromMultipartData(formParams);
} else {
return obj != null ? BodyInserters.fromObject(obj) : null;
return obj != null ? BodyInserters.fromValue(obj) : null;
}
}