From 1f2e5c89359ed7cd9e46325155dbd40c9115fcda Mon Sep 17 00:00:00 2001 From: Santosh Yadav Date: Thu, 8 Feb 2018 16:45:59 +0530 Subject: [PATCH] sonar bug: condition always true removed the condition, it will always be true. line no: 57 Change-Id: I1cf07fe959dc66d70af64548004c0f431cbbdf46 Issue-ID: VFC-695 Signed-off-by: Santosh Yadav --- .../org/onap/vfc/nfvo/emsdriver/collector/CollectMsgReceiverThread.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ems/boco/src/main/java/org/onap/vfc/nfvo/emsdriver/collector/CollectMsgReceiverThread.java b/ems/boco/src/main/java/org/onap/vfc/nfvo/emsdriver/collector/CollectMsgReceiverThread.java index 6d99aea..f53a5ed 100644 --- a/ems/boco/src/main/java/org/onap/vfc/nfvo/emsdriver/collector/CollectMsgReceiverThread.java +++ b/ems/boco/src/main/java/org/onap/vfc/nfvo/emsdriver/collector/CollectMsgReceiverThread.java @@ -53,7 +53,7 @@ public class CollectMsgReceiverThread extends DriverThread { Thread.sleep(10); continue; } - if (obj != null && obj instanceof CollectMsg) { + if (obj instanceof CollectMsg) { CollectMsg collectMsg = (CollectMsg) obj; taskService.add(collectMsg); log.debug("receive a CollectMsg id = " + collectMsg.getId()); -- 2.16.6