summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2020-09-03 17:42:03 +0000
committerGerrit Code Review <gerrit@onap.org>2020-09-03 17:42:03 +0000
commit508bdbd4d17ebf3726d92553839cc4b3af922250 (patch)
treeaf20a824a4a935a73353111b7268c272c32232af /core
parent386d8b15efd66cbd176e9911806c55a437cc6376 (diff)
parent917ebfc9561115b66b03a7bb2a1ade38d3667219 (diff)
Merge "Sonar Bug fixes"
Diffstat (limited to 'core')
-rw-r--r--core/core-protocols/src/test/java/org/onap/policy/apex/core/protocols/SupportMessageTester.java2
-rw-r--r--core/core-protocols/src/test/java/org/onap/policy/apex/core/protocols/engdep/messages/ResponseTest.java2
-rw-r--r--core/core-protocols/src/test/java/org/onap/policy/apex/core/protocols/engdep/messages/UpdateModelTest.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/core/core-protocols/src/test/java/org/onap/policy/apex/core/protocols/SupportMessageTester.java b/core/core-protocols/src/test/java/org/onap/policy/apex/core/protocols/SupportMessageTester.java
index c4de748ee..e6f1fa74a 100644
--- a/core/core-protocols/src/test/java/org/onap/policy/apex/core/protocols/SupportMessageTester.java
+++ b/core/core-protocols/src/test/java/org/onap/policy/apex/core/protocols/SupportMessageTester.java
@@ -66,7 +66,7 @@ public class SupportMessageTester {
// disabling sonar because this code tests the equals() method
assertEquals(dummyMessage, dummyMessage); // NOSONAR
assertNotNull(dummyMessage);
- assertNotEquals(dummyMessage, new StartEngine(new AxArtifactKey()));
+ assertNotEquals(dummyMessage, (Object) new StartEngine(new AxArtifactKey()));
dummyMessage = new DummyMessage(new DummyAction(null), null, null);
DummyMessage otherDummyMessage = new DummyMessage(null, null, null);
diff --git a/core/core-protocols/src/test/java/org/onap/policy/apex/core/protocols/engdep/messages/ResponseTest.java b/core/core-protocols/src/test/java/org/onap/policy/apex/core/protocols/engdep/messages/ResponseTest.java
index a78c670b5..2ed8ef607 100644
--- a/core/core-protocols/src/test/java/org/onap/policy/apex/core/protocols/engdep/messages/ResponseTest.java
+++ b/core/core-protocols/src/test/java/org/onap/policy/apex/core/protocols/engdep/messages/ResponseTest.java
@@ -75,7 +75,7 @@ public class ResponseTest {
// disabling sonar because this code tests the equals() method
assertEquals(message, message); // NOSONAR
assertNotNull(message);
- assertNotEquals(message, new StartEngine(new AxArtifactKey()));
+ assertNotEquals(message, (Object) new StartEngine(new AxArtifactKey()));
message = new Response(null, false, responseTo);
Response otherMessage = new Response(null, false, null);
diff --git a/core/core-protocols/src/test/java/org/onap/policy/apex/core/protocols/engdep/messages/UpdateModelTest.java b/core/core-protocols/src/test/java/org/onap/policy/apex/core/protocols/engdep/messages/UpdateModelTest.java
index 953c6fa8a..85feda6d8 100644
--- a/core/core-protocols/src/test/java/org/onap/policy/apex/core/protocols/engdep/messages/UpdateModelTest.java
+++ b/core/core-protocols/src/test/java/org/onap/policy/apex/core/protocols/engdep/messages/UpdateModelTest.java
@@ -71,7 +71,7 @@ public class UpdateModelTest {
// disabling sonar because this code tests the equals() method
assertEquals(message, message); // NOSONAR
assertNotNull(message);
- assertNotEquals(message, new StartEngine(new AxArtifactKey()));
+ assertNotEquals(message, (Object) new StartEngine(new AxArtifactKey()));
message = new UpdateModel(null, null, false, false);
UpdateModel otherMessage = new UpdateModel(null, null, false, false);