From 54968556988379bb48a5c25ce0481722689c7c53 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Sat, 8 Jun 2024 11:43:29 +0200 Subject: [PATCH] [FEAT] add a remove warning --- src/org/kar/archidata/tools/RESTApi.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/org/kar/archidata/tools/RESTApi.java b/src/org/kar/archidata/tools/RESTApi.java index 05ada03..d7944ac 100644 --- a/src/org/kar/archidata/tools/RESTApi.java +++ b/src/org/kar/archidata/tools/RESTApi.java @@ -120,6 +120,7 @@ public class RESTApi { } } + @SuppressWarnings("unchecked") protected T modelSendJson(final String model, final Class 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 modelSendMap( final String model, final Class clazz,