update test, suppress warnings in java apache client (#14098)

This commit is contained in:
William Cheng
2022-11-23 20:32:01 +08:00
committed by GitHub
parent 743d2cde7f
commit 09c070a27e
3 changed files with 18 additions and 3 deletions

View File

@@ -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;