[FEAT] add a remove warning

This commit is contained in:
Edouard DUPIN 2024-06-08 11:43:29 +02:00
parent c9cb0d043a
commit 5496855698

View File

@ -120,6 +120,7 @@ public class RESTApi {
}
}
@SuppressWarnings("unchecked")
protected <T, U> T modelSendJson(final String model, final Class<T> clazz, final String urlOffset, String body)
throws RESTErrorResponseExeption, IOException, InterruptedException {
final HttpClient client = HttpClient.newHttpClient();
@ -164,6 +165,7 @@ public class RESTApi {
return this.mapper.readValue(httpResponse.body(), clazz);
}
@SuppressWarnings("unchecked")
protected <T> T modelSendMap(
final String model,
final Class<T> clazz,