Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: spotlessApply update #107

Merged
merged 1 commit into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading