mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-05-16 00:21:19 +00:00
update test, suppress warnings in java apache client (#14098)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user