aboutsummaryrefslogtreecommitdiffstats
path: root/gson
diff options
context:
space:
mode:
authorwaynedunican <wayne.dunican@est.tech>2024-08-12 21:18:12 +0100
committerwaynedunican <wayne.dunican@est.tech>2024-08-13 09:21:16 +0100
commit63d23a4aa0f3aeae9d6470b95dfa8f87b2d85aa8 (patch)
tree74aa5c14f66dc5760eb00ea8f18c278174cbc56e /gson
parent34cad0af615db1ed4b85b8e4e1b77d0948289eed (diff)
Fix sonar issues in common
- SONAR Fix instanceOf issues - SONAR Remove public modifiers - SONAR Remove unused imports - SONAR Remove exceptions that can't be thrown from method body Issue-ID: POLICY-5106 Change-Id: I745d0101036d3421f02db22481514be0b79f5103 Signed-off-by: waynedunican <wayne.dunican@est.tech>
Diffstat (limited to 'gson')
-rw-r--r--gson/src/test/java/org/onap/policy/common/gson/internal/FieldSerializerTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/gson/src/test/java/org/onap/policy/common/gson/internal/FieldSerializerTest.java b/gson/src/test/java/org/onap/policy/common/gson/internal/FieldSerializerTest.java
index a55d9908..1431f47b 100644
--- a/gson/src/test/java/org/onap/policy/common/gson/internal/FieldSerializerTest.java
+++ b/gson/src/test/java/org/onap/policy/common/gson/internal/FieldSerializerTest.java
@@ -51,7 +51,7 @@ class FieldSerializerTest {
private List<Data> listField;
@Test
- public void testAddToTree() throws Exception {
+ void testAddToTree() throws Exception {
ser = new FieldSerializer(gson, FieldSerializerTest.class.getDeclaredField(TEXT_FIELD_NAME));
// serialize null value first