From ea3138107fed1cb0cea75f3725861ec5d38357cc Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Tue, 28 Mar 2023 11:15:53 +0200 Subject: [PATCH] Polishing. Align author tags. Move off deprecated code. See gh-676 Original pull request: gh-677 --- .../vault/config/VaultHealthIndicatorAutoConfiguration.java | 3 ++- .../cloud/vault/config/VaultHealthIndicatorConfiguration.java | 1 + .../config/VaultReactiveHealthIndicatorConfiguration.java | 4 +++- .../config/VaultHealthIndicatorAutoConfigurationTests.java | 3 ++- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/spring-cloud-vault-config/src/main/java/org/springframework/cloud/vault/config/VaultHealthIndicatorAutoConfiguration.java b/spring-cloud-vault-config/src/main/java/org/springframework/cloud/vault/config/VaultHealthIndicatorAutoConfiguration.java index de5bdb718..80d6635eb 100644 --- a/spring-cloud-vault-config/src/main/java/org/springframework/cloud/vault/config/VaultHealthIndicatorAutoConfiguration.java +++ b/spring-cloud-vault-config/src/main/java/org/springframework/cloud/vault/config/VaultHealthIndicatorAutoConfiguration.java @@ -30,7 +30,8 @@ * {@link org.springframework.boot.autoconfigure.EnableAutoConfiguration * Auto-configuration} for Vault providing beans for the application context. * - * @author Mark Paluch, Rastislav Zlacky + * @author Mark Paluch + * @author Rastislav Zlacky * @since 2.0 */ @Configuration(proxyBeanMethods = false) diff --git a/spring-cloud-vault-config/src/main/java/org/springframework/cloud/vault/config/VaultHealthIndicatorConfiguration.java b/spring-cloud-vault-config/src/main/java/org/springframework/cloud/vault/config/VaultHealthIndicatorConfiguration.java index 36f8ac690..9ffe425a2 100644 --- a/spring-cloud-vault-config/src/main/java/org/springframework/cloud/vault/config/VaultHealthIndicatorConfiguration.java +++ b/spring-cloud-vault-config/src/main/java/org/springframework/cloud/vault/config/VaultHealthIndicatorConfiguration.java @@ -41,6 +41,7 @@ class VaultHealthIndicatorConfiguration private final Map vaultTemplates; VaultHealthIndicatorConfiguration(Map vaultTemplates) { + super(VaultHealthIndicator::new); this.vaultTemplates = vaultTemplates; } diff --git a/spring-cloud-vault-config/src/main/java/org/springframework/cloud/vault/config/VaultReactiveHealthIndicatorConfiguration.java b/spring-cloud-vault-config/src/main/java/org/springframework/cloud/vault/config/VaultReactiveHealthIndicatorConfiguration.java index 996c8c68e..53886003c 100644 --- a/spring-cloud-vault-config/src/main/java/org/springframework/cloud/vault/config/VaultReactiveHealthIndicatorConfiguration.java +++ b/spring-cloud-vault-config/src/main/java/org/springframework/cloud/vault/config/VaultReactiveHealthIndicatorConfiguration.java @@ -32,7 +32,8 @@ /** * Configuration for {@link VaultReactiveHealthIndicator}. * - * @author Mark Paluch, Rastislav Zlacky + * @author Mark Paluch + * @author Rastislav Zlacky * @since 2.0 */ @Configuration(proxyBeanMethods = false) @@ -44,6 +45,7 @@ class VaultReactiveHealthIndicatorConfiguration private final Map reactiveVaultTemplates; VaultReactiveHealthIndicatorConfiguration(Map reactiveVaultTemplates) { + super(VaultReactiveHealthIndicator::new); this.reactiveVaultTemplates = reactiveVaultTemplates; } diff --git a/spring-cloud-vault-config/src/test/java/org/springframework/cloud/vault/config/VaultHealthIndicatorAutoConfigurationTests.java b/spring-cloud-vault-config/src/test/java/org/springframework/cloud/vault/config/VaultHealthIndicatorAutoConfigurationTests.java index c9e63e56f..5bb105f4f 100644 --- a/spring-cloud-vault-config/src/test/java/org/springframework/cloud/vault/config/VaultHealthIndicatorAutoConfigurationTests.java +++ b/spring-cloud-vault-config/src/test/java/org/springframework/cloud/vault/config/VaultHealthIndicatorAutoConfigurationTests.java @@ -30,7 +30,8 @@ /** * Unit tests for {@link VaultHealthIndicatorAutoConfiguration}. * - * @author Mark Paluch, Rastislav Zlacky + * @author Mark Paluch + * @author Rastislav Zlacky */ class VaultHealthIndicatorAutoConfigurationTests {