mirror of
				https://github.com/OpenAPITools/openapi-generator.git
				synced 2025-10-31 16:53:54 +00:00 
			
		
		
		
	[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:
		
							parent
							
								
									4e2ece4b51
								
							
						
					
					
						commit
						ad603f44fb
					
				| @ -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; | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|  | ||||
| @ -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}} | ||||
|  | ||||
| @ -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}} | ||||
|  | ||||
| @ -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" | ||||
|  | ||||
| @ -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> | ||||
|  | ||||
| @ -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; | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user