From 2aa3fd69e0e9273ca1c331644da16b42e7e3c33e Mon Sep 17 00:00:00 2001 From: Victor Colin Amador Date: Mon, 19 Aug 2024 11:16:26 -0700 Subject: [PATCH] Fixed compilation warning. --- .../jca/implementation/utils/JsonConverterUtilTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sdk/keyvault/azure-security-keyvault-jca/src/test/java/com/azure/security/keyvault/jca/implementation/utils/JsonConverterUtilTest.java b/sdk/keyvault/azure-security-keyvault-jca/src/test/java/com/azure/security/keyvault/jca/implementation/utils/JsonConverterUtilTest.java index 413dc49edde2f..e9944497cb807 100644 --- a/sdk/keyvault/azure-security-keyvault-jca/src/test/java/com/azure/security/keyvault/jca/implementation/utils/JsonConverterUtilTest.java +++ b/sdk/keyvault/azure-security-keyvault-jca/src/test/java/com/azure/security/keyvault/jca/implementation/utils/JsonConverterUtilTest.java @@ -22,7 +22,7 @@ public class JsonConverterUtilTest { @Test public void testFromJson() throws IOException { String string = "{ \"cer\": \"cer\" }"; - CertificateBundle bundle = (CertificateBundle) JsonConverterUtil.fromJson(CertificateBundle.class, string); + CertificateBundle bundle = JsonConverterUtil.fromJson(CertificateBundle.class, string); assertNotNull(bundle); assertEquals("cer", bundle.getCer()); @@ -30,7 +30,6 @@ public void testFromJson() throws IOException { /** * Test toJson method. - * */ @Test public void testToJson() {