From afc7fa55500109a25772681882ad12c22c794a2b Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Tue, 29 Oct 2019 15:02:25 -0400 Subject: Fix new sonar issues in common Issue-ID: POLICY-2204 Signed-off-by: Jim Hahn Change-Id: If0a11913f614e038ecd3e8c3f0b56d3ac78b03ec Signed-off-by: Jim Hahn --- .../main/java/org/onap/policy/common/utils/coder/PropertyCoder.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'utils/src/main/java/org') diff --git a/utils/src/main/java/org/onap/policy/common/utils/coder/PropertyCoder.java b/utils/src/main/java/org/onap/policy/common/utils/coder/PropertyCoder.java index 972cba5f..3036d353 100644 --- a/utils/src/main/java/org/onap/policy/common/utils/coder/PropertyCoder.java +++ b/utils/src/main/java/org/onap/policy/common/utils/coder/PropertyCoder.java @@ -54,12 +54,12 @@ public class PropertyCoder { * @param clazz class T object * @return a class T object */ - public T decode(String json, String keyProperty, Class clazz) throws CoderException { + public T decode(String json, String keyProperty, Class clazz) { JsonElement jsonElement = GSON.fromJson(json, JsonElement.class); return new MyDecoder(jsonElement, keyProperty).decrypt(jsonElement, clazz); } - public T decode(Reader reader, String keyProperty, Class clazz) throws CoderException { + public T decode(Reader reader, String keyProperty, Class clazz) { JsonElement jsonElement = GSON.fromJson(reader, JsonElement.class); return new MyDecoder(jsonElement, keyProperty).decrypt(jsonElement, clazz); } @@ -67,7 +67,7 @@ public class PropertyCoder { private static class MyDecoder extends StandardCoder { private CryptoCoder crypto = null; - MyDecoder(JsonElement jsonElement, String keyProperty) throws CoderException { + MyDecoder(JsonElement jsonElement, String keyProperty) { if (!jsonElement.isJsonObject()) { return; } -- cgit 1.2.3-korg