Skip to content

Commit

Permalink
Eagerly initialize Netty4ClientHttpRequestFactory
Browse files Browse the repository at this point in the history
Avoid a null SSLContext.

Closes gh-597
  • Loading branch information
mp911de committed Dec 1, 2020
1 parent 927134f commit 25c3bf8
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -173,8 +173,9 @@ private static HttpEntity<Object> getLeaseRevocationBody(Lease lease) {
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));
}

Expand Down

0 comments on commit 25c3bf8

Please sign in to comment.