Eagerly initialize Netty4ClientHttpRequestFactory

Avoid a null SSLContext.

Closes gh-597
This commit is contained in:
Mark Paluch
2020-12-01 17:49:00 +01:00
parent 927134fcf8
commit 25c3bf8fc0

View File

@@ -173,8 +173,9 @@ public enum LeaseEndpoints {
return new HttpEntity<>(leaseRenewalData);
}
@SuppressWarnings({"unchecked", "RedundantClassCall"})
private static ResponseEntity<Map<String, Object>> put(RestOperations operations, HttpEntity<Object> entity, String url) {
@SuppressWarnings({ "unchecked", "RedundantClassCall" })
private static ResponseEntity<Map<String, Object>> put(RestOperations operations, HttpEntity<Object> entity,
String url) {
return ResponseEntity.class.cast(operations.exchange(url, HttpMethod.PUT, entity, Map.class));
}