From 2c0102f549136a13508e430cdbbfe2a0323e4008 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Mon, 21 Sep 2020 08:55:29 +0200 Subject: [PATCH] Remove throws Exception from SecretLeaseContainer.afterPropertiesSet It's not required so we can drop throws Exception from the method declaration. Closes gh-584 --- .../springframework/vault/core/lease/SecretLeaseContainer.java | 2 +- .../vault/core/lease/SecretLeaseEventPublisher.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-vault-core/src/main/java/org/springframework/vault/core/lease/SecretLeaseContainer.java b/spring-vault-core/src/main/java/org/springframework/vault/core/lease/SecretLeaseContainer.java index fd6b1b96..4c6e728f 100644 --- a/spring-vault-core/src/main/java/org/springframework/vault/core/lease/SecretLeaseContainer.java +++ b/spring-vault-core/src/main/java/org/springframework/vault/core/lease/SecretLeaseContainer.java @@ -429,7 +429,7 @@ public class SecretLeaseContainer extends SecretLeaseEventPublisher implements I } @Override - public void afterPropertiesSet() throws Exception { + public void afterPropertiesSet() { if (!this.initialized) { diff --git a/spring-vault-core/src/main/java/org/springframework/vault/core/lease/SecretLeaseEventPublisher.java b/spring-vault-core/src/main/java/org/springframework/vault/core/lease/SecretLeaseEventPublisher.java index 94352f9e..bc17bca6 100644 --- a/spring-vault-core/src/main/java/org/springframework/vault/core/lease/SecretLeaseEventPublisher.java +++ b/spring-vault-core/src/main/java/org/springframework/vault/core/lease/SecretLeaseEventPublisher.java @@ -97,7 +97,7 @@ public class SecretLeaseEventPublisher implements InitializingBean { } @Override - public void afterPropertiesSet() throws Exception { + public void afterPropertiesSet() { if (this.leaseErrorListeners.isEmpty()) { addErrorListener(LoggingErrorListener.INSTANCE);