From 9f9131575d2e2b1002a3e108f7793a97fa7652ab Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Mon, 6 Apr 2020 12:17:11 -0400 Subject: Address sonar issues in ONAP-logging Addressed the following sonar issues in ONAP-logging: - use Map instead of ConcurrentHashMap - remove unusued fields - use Map.computeIfAbsent() instead of get()/put() pair - readObject is unsafe - use try-with-resources - junit should assert something Also removed some unused imports. Issue-ID: POLICY-2305 Signed-off-by: Jim Hahn Change-Id: I3480a55da4d0e771f8083c97770a6c9707d871f7 Signed-off-by: Jim Hahn --- common-logging/pom.xml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'common-logging/pom.xml') diff --git a/common-logging/pom.xml b/common-logging/pom.xml index 1fef17a1..a87d31a1 100644 --- a/common-logging/pom.xml +++ b/common-logging/pom.xml @@ -66,6 +66,11 @@ org.apache.commons commons-lang3 + + org.assertj + assertj-core + test + org.powermock powermock-api-mockito2 -- cgit 1.2.3-korg