From 59f4f54cdf4c1a5c155360239272da690e8c4a72 Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Tue, 25 Aug 2020 12:30:29 -0400 Subject: Address more sonar issues in policy-models Addressed sonar issues: - diamond operator Also removed a number of the "NOSONAR" comments now that we know how to address them without disabling sonar. Issue-ID: POLICY-2714 Change-Id: I440f4fa955968fd911616c2b6ee61b4b4d013821 Signed-off-by: Jim Hahn --- .../src/test/java/org/onap/policy/guard/OperationsHistoryTest.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'models-interactions/model-impl/guard/src') diff --git a/models-interactions/model-impl/guard/src/test/java/org/onap/policy/guard/OperationsHistoryTest.java b/models-interactions/model-impl/guard/src/test/java/org/onap/policy/guard/OperationsHistoryTest.java index 32827b04b..47bdb4c36 100644 --- a/models-interactions/model-impl/guard/src/test/java/org/onap/policy/guard/OperationsHistoryTest.java +++ b/models-interactions/model-impl/guard/src/test/java/org/onap/policy/guard/OperationsHistoryTest.java @@ -63,10 +63,7 @@ public class OperationsHistoryTest { dao.setId(101L); assertNotEquals(hc, dao.hashCode()); - /* - * Disabling sonar to test equals(). - */ - assertEquals(dao, dao); // NOSONAR + assertEquals(dao, (Object) dao); assertNotEquals(dao, new OperationsHistory()); } } -- cgit 1.2.3-korg