From e377d7d43a630f6a6e7bb2f388d27cccb22e3d3d Mon Sep 17 00:00:00 2001 From: Nate Danner Date: Mon, 20 May 2024 17:19:38 +0000 Subject: [PATCH] refactor: Common static analysis issues Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.staticanalysis.CommonStaticAnalysis?organizationId=TmV0ZmxpeCArIFNwcmluZw%3D%3D Co-authored-by: Moderne --- .../server/environment/ConfigurableHttpConnectionFactory.java | 2 +- .../environment/MultipleJGitEnvironmentRepositoryFactory.java | 2 +- .../cloud/config/server/support/HttpClient4Support.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/ConfigurableHttpConnectionFactory.java b/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/ConfigurableHttpConnectionFactory.java index 5ad88a9d23..5d7e2f2e1d 100644 --- a/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/ConfigurableHttpConnectionFactory.java +++ b/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/ConfigurableHttpConnectionFactory.java @@ -27,7 +27,7 @@ public interface ConfigurableHttpConnectionFactory extends HttpConnectionFactory { default void addConfiguration(MultipleJGitEnvironmentProperties environmentProperties) throws Exception { - addConfiguration(environmentProperties, Collections.EMPTY_LIST); + addConfiguration(environmentProperties, Collections.emptyList()); } void addConfiguration(MultipleJGitEnvironmentProperties environmentProperties, diff --git a/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/MultipleJGitEnvironmentRepositoryFactory.java b/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/MultipleJGitEnvironmentRepositoryFactory.java index 157f0bfabf..3e1679c277 100644 --- a/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/MultipleJGitEnvironmentRepositoryFactory.java +++ b/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/MultipleJGitEnvironmentRepositoryFactory.java @@ -66,7 +66,7 @@ public MultipleJGitEnvironmentRepositoryFactory(ConfigurableEnvironment environm TransportConfigCallbackFactory transportConfigCallbackFactory, GitCredentialsProviderFactory gitCredentialsProviderFactory) { this(environment, server, connectionFactory, transportConfigCallbackFactory, gitCredentialsProviderFactory, - Collections.EMPTY_LIST); + Collections.emptyList()); } public MultipleJGitEnvironmentRepositoryFactory(ConfigurableEnvironment environment, ConfigServerProperties server, diff --git a/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/support/HttpClient4Support.java b/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/support/HttpClient4Support.java index f08171548c..4a85bd3fa6 100644 --- a/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/support/HttpClient4Support.java +++ b/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/support/HttpClient4Support.java @@ -51,7 +51,7 @@ private HttpClient4Support() { public static HttpClientBuilder builder(HttpEnvironmentRepositoryProperties environmentProperties) throws GeneralSecurityException { - return builder(environmentProperties, Collections.EMPTY_LIST); + return builder(environmentProperties, Collections.emptyList()); } public static HttpClientBuilder builder(HttpEnvironmentRepositoryProperties environmentProperties,