From: Santosh Yadav Date: Thu, 8 Feb 2018 11:15:59 +0000 (+0530) Subject: sonar bug: condition always true X-Git-Tag: v1.1.0~52 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=1f2e5c89359ed7cd9e46325155dbd40c9115fcda;p=vfc%2Fnfvo%2Fdriver%2Fems.git 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 --- 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());