10788: ApiClient for resttemplate should not produce warning (#10789)

Motivation:

Remove useless warnings for webclient and resttemplate
This commit is contained in:
Vincent Galloy
2021-11-09 07:38:57 +01:00
committed by GitHub
parent 4d947a1c45
commit 955aadc284
6 changed files with 6 additions and 0 deletions

View File

@@ -424,6 +424,7 @@ public class ApiClient extends JavaTimeFormatter {
}
if (value instanceof Map) {
@SuppressWarnings("unchecked")
final Map<String, Object> valuesMap = (Map<String, Object>) value;
for (final Entry<String, Object> entry : valuesMap.entrySet()) {
params.add(entry.getKey(), parameterToString(entry.getValue()));