Skip to content

Commit 5551498

Browse files
committed
Fix argument assertions.
Closes gh-928
1 parent 885f8aa commit 5551498

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

spring-vault-core/src/main/java/org/springframework/vault/core/env/LeaseAwareVaultPropertySource.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ public LeaseAwareVaultPropertySource(String name, SecretLeaseContainer secretLea
115115
*/
116116
public LeaseAwareVaultPropertySource(String name, SecretLeaseContainer secretLeaseContainer,
117117
RequestedSecret requestedSecret, PropertyTransformer propertyTransformer) {
118-
119118
this(name, secretLeaseContainer, requestedSecret, propertyTransformer, true);
120119
}
121120

@@ -138,8 +137,8 @@ public LeaseAwareVaultPropertySource(String name, SecretLeaseContainer secretLea
138137

139138
super(name);
140139

141-
Assert.notNull(secretLeaseContainer, "Path name must contain at least one character");
142-
Assert.notNull(requestedSecret, "SecretLeaseContainer must not be null");
140+
Assert.notNull(secretLeaseContainer, "SecretLeaseContainer must not be null");
141+
Assert.notNull(requestedSecret, "RequestedSecret must not be null");
143142
Assert.notNull(propertyTransformer, "PropertyTransformer must not be null");
144143

145144
this.secretLeaseContainer = secretLeaseContainer;

0 commit comments

Comments
 (0)