forked from loafle/openapi-generator-original
update test, suppress warnings in java apache client (#14098)
This commit is contained in:
parent
743d2cde7f
commit
09c070a27e
@ -782,8 +782,16 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} {
|
||||
}
|
||||
|
||||
/**
|
||||
* Deserialize response content
|
||||
* Deserialize response body to Java object according to the Content-Type.
|
||||
*
|
||||
* @param <T> Type
|
||||
* @param response Response
|
||||
* @param valueType Return type
|
||||
* @return Deserialized object
|
||||
* @throws ApiException API exception
|
||||
* @throws IOException IO exception
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public <T> T deserialize(HttpResponse response, TypeReference<T> valueType) throws ApiException, IOException {
|
||||
if (valueType == null) {
|
||||
return null;
|
||||
|
@ -1,6 +1,5 @@
|
||||
/*
|
||||
* Copyright 2018 OpenAPI-Generator Contributors (https://openapi-generator.tech)
|
||||
* Copyright 2018 SmartBear Software
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -737,8 +737,16 @@ public class ApiClient extends JavaTimeFormatter {
|
||||
}
|
||||
|
||||
/**
|
||||
* Deserialize response content
|
||||
* Deserialize response body to Java object according to the Content-Type.
|
||||
*
|
||||
* @param <T> Type
|
||||
* @param response Response
|
||||
* @param valueType Return type
|
||||
* @return Deserialized object
|
||||
* @throws ApiException API exception
|
||||
* @throws IOException IO exception
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public <T> T deserialize(HttpResponse response, TypeReference<T> valueType) throws ApiException, IOException {
|
||||
if (valueType == null) {
|
||||
return null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user