From 34ead20c15510f1954c5283c8e555d02f64d1a5c Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Tue, 5 Dec 2023 06:55:51 -0500 Subject: [PATCH] style: spotlessApply update --- .../openvulnerability/client/HttpAsyncClientSupplier.java | 5 +---- .../openvulnerability/client/HttpClientSupplier.java | 5 +---- .../openvulnerability/client/nvd/NvdCveClientBuilder.java | 6 +++--- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/open-vulnerability-clients/src/main/java/io/github/jeremylong/openvulnerability/client/HttpAsyncClientSupplier.java b/open-vulnerability-clients/src/main/java/io/github/jeremylong/openvulnerability/client/HttpAsyncClientSupplier.java index a6643928..f15322ca 100644 --- a/open-vulnerability-clients/src/main/java/io/github/jeremylong/openvulnerability/client/HttpAsyncClientSupplier.java +++ b/open-vulnerability-clients/src/main/java/io/github/jeremylong/openvulnerability/client/HttpAsyncClientSupplier.java @@ -36,10 +36,7 @@ public interface HttpAsyncClientSupplier extends Supplier { SystemDefaultRoutePlanner planner = new SystemDefaultRoutePlanner(ProxySelector.getDefault()); - return HttpAsyncClients.custom() - .setRoutePlanner(planner) - .useSystemProperties() - .build(); + return HttpAsyncClients.custom().setRoutePlanner(planner).useSystemProperties().build(); }; } diff --git a/open-vulnerability-clients/src/main/java/io/github/jeremylong/openvulnerability/client/HttpClientSupplier.java b/open-vulnerability-clients/src/main/java/io/github/jeremylong/openvulnerability/client/HttpClientSupplier.java index 714595b3..23e6d8a3 100644 --- a/open-vulnerability-clients/src/main/java/io/github/jeremylong/openvulnerability/client/HttpClientSupplier.java +++ b/open-vulnerability-clients/src/main/java/io/github/jeremylong/openvulnerability/client/HttpClientSupplier.java @@ -36,10 +36,7 @@ public interface HttpClientSupplier extends Supplier { static HttpClientSupplier getDefault() { return () -> { SystemDefaultRoutePlanner planner = new SystemDefaultRoutePlanner(ProxySelector.getDefault()); - return HttpClientBuilder.create() - .setRoutePlanner(planner) - .useSystemProperties() - .build(); + return HttpClientBuilder.create().setRoutePlanner(planner).useSystemProperties().build(); }; } diff --git a/open-vulnerability-clients/src/main/java/io/github/jeremylong/openvulnerability/client/nvd/NvdCveClientBuilder.java b/open-vulnerability-clients/src/main/java/io/github/jeremylong/openvulnerability/client/nvd/NvdCveClientBuilder.java index bb6dbdda..aa787b28 100644 --- a/open-vulnerability-clients/src/main/java/io/github/jeremylong/openvulnerability/client/nvd/NvdCveClientBuilder.java +++ b/open-vulnerability-clients/src/main/java/io/github/jeremylong/openvulnerability/client/nvd/NvdCveClientBuilder.java @@ -334,9 +334,9 @@ public NvdCveClientBuilder withVersionEnd(String versionEnd, VersionType endType /** * Provide a supplier for custom HTTP clients. *

- * 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