From bdc2e79288d01494e3c992f28cfc3ae3daf306de Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Tue, 11 Aug 2020 12:11:33 +0200 Subject: [PATCH] Deprecate Policy.BuiltinCapabilities.WRITE Deprecate constant as it is deprecated since Vault 0.5. Closes gh-575. --- .../main/java/org/springframework/vault/support/Policy.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-vault-core/src/main/java/org/springframework/vault/support/Policy.java b/spring-vault-core/src/main/java/org/springframework/vault/support/Policy.java index a6f39fb4..b14f571d 100644 --- a/spring-vault-core/src/main/java/org/springframework/vault/support/Policy.java +++ b/spring-vault-core/src/main/java/org/springframework/vault/support/Policy.java @@ -546,7 +546,9 @@ public class Policy { /** * Deprecated: Previous capability literal before it was split into * {@link #CREATE} and {@link #UPDATE}. + * @deprecated since 2.3 and Vault 0.5. */ + @Deprecated WRITE, /** @@ -610,7 +612,6 @@ public class Policy { gen.writeEndObject(); gen.writeEndObject(); - } }