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