From 4470914edfab00b25635df1eb740bd2e5dfec81f Mon Sep 17 00:00:00 2001 From: shipkit-org Date: Fri, 7 Feb 2020 13:02:21 -0800 Subject: [PATCH] Fix double field in CloudBlobMetadata serializer --- .../src/main/java/com.github.ambry.cloud/CloudBlobMetadata.java | 1 - 1 file changed, 1 deletion(-) diff --git a/ambry-cloud/src/main/java/com.github.ambry.cloud/CloudBlobMetadata.java b/ambry-cloud/src/main/java/com.github.ambry.cloud/CloudBlobMetadata.java index 03d86e8a5e..1b9d40f1c6 100644 --- a/ambry-cloud/src/main/java/com.github.ambry.cloud/CloudBlobMetadata.java +++ b/ambry-cloud/src/main/java/com.github.ambry.cloud/CloudBlobMetadata.java @@ -471,7 +471,6 @@ public void serialize(CloudBlobMetadata value, JsonGenerator gen, SerializerProv if (value.encryptionOrigin != EncryptionOrigin.NONE) { gen.writeStringField(FIELD_ENCRYPTION_ORIGIN, value.encryptionOrigin.toString()); if (value.encryptionOrigin == EncryptionOrigin.VCR) { - gen.writeStringField(FIELD_ENCRYPTION_ORIGIN, value.encryptionOrigin.toString()); gen.writeStringField(FIELD_VCR_KMS_CONTEXT, value.vcrKmsContext); gen.writeStringField(FIELD_CRYPTO_AGENT_FACTORY, value.cryptoAgentFactory); gen.writeNumberField(FIELD_ENCRYPTED_SIZE, value.encryptedSize);