Skip to content

Commit

Permalink
style: spotlessApply update (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylong authored Dec 5, 2023
1 parent c936e6b commit c2fb945
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@ public interface HttpAsyncClientSupplier extends Supplier<CloseableHttpAsyncClie
static HttpAsyncClientSupplier getDefault() {
return () -> {
SystemDefaultRoutePlanner planner = new SystemDefaultRoutePlanner(ProxySelector.getDefault());
return HttpAsyncClients.custom()
.setRoutePlanner(planner)
.useSystemProperties()
.build();
return HttpAsyncClients.custom().setRoutePlanner(planner).useSystemProperties().build();
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@ public interface HttpClientSupplier extends Supplier<CloseableHttpClient> {
static HttpClientSupplier getDefault() {
return () -> {
SystemDefaultRoutePlanner planner = new SystemDefaultRoutePlanner(ProxySelector.getDefault());
return HttpClientBuilder.create()
.setRoutePlanner(planner)
.useSystemProperties()
.build();
return HttpClientBuilder.create().setRoutePlanner(planner).useSystemProperties().build();
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,9 @@ public NvdCveClientBuilder withVersionEnd(String versionEnd, VersionType endType
/**
* Provide a supplier for custom HTTP clients.
* <p>
* Note that {@link #withDelay(long)} and {@link #withMaxRetryCount(int)} have no effect when
* a custom {@link HttpAsyncClientSupplier} is provided. Instead, clients created by the supplier
* should be configured to use {@link NvdApiRetryStrategy} with the desired delay and retry count values.
* Note that {@link #withDelay(long)} and {@link #withMaxRetryCount(int)} have no effect when a custom
* {@link HttpAsyncClientSupplier} is provided. Instead, clients created by the supplier should be configured to use
* {@link NvdApiRetryStrategy} with the desired delay and retry count values.
*
* @param httpClientSupplier supplier for custom HTTP clients; if {@code null} a default client will be used
* @return the builder
Expand Down

0 comments on commit c2fb945

Please sign in to comment.