Fix unchecked conversion (#10246)

* Fix unchecked conversion

Update restttemplate and webclient templates to use <>-operator.
Also update samples.

* Update samples
This commit is contained in:
Thomas Zeeman
2021-08-25 04:09:53 +02:00
committed by GitHub
parent cab2244646
commit f2b50faeec
6 changed files with 6 additions and 6 deletions

View File

@@ -627,7 +627,7 @@ public class ApiClient extends JavaTimeFormatter {
public <T> ResponseEntity<T> invokeAPI(String path, HttpMethod method, Map<String, Object> pathParams, MultiValueMap<String, String> queryParams, Object body, HttpHeaders headerParams, MultiValueMap<String, String> cookieParams, MultiValueMap<String, Object> formParams, List<MediaType> accept, MediaType contentType, String[] authNames, ParameterizedTypeReference<T> returnType) throws RestClientException {
updateParamsForAuth(authNames, queryParams, headerParams, cookieParams);
Map<String,Object> uriParams = new HashMap();
Map<String,Object> uriParams = new HashMap<>();
uriParams.putAll(pathParams);
String finalUri = path;