sonar bug: condition always true 45/30845/1
authorSantosh Yadav <santosh.k.yadav@ril.com>
Thu, 8 Feb 2018 11:15:59 +0000 (16:45 +0530)
committerSantosh Yadav <santosh.k.yadav@ril.com>
Thu, 8 Feb 2018 11:15:59 +0000 (16:45 +0530)
removed the condition, it will always be true.
line no: 57

Change-Id: I1cf07fe959dc66d70af64548004c0f431cbbdf46
Issue-ID: VFC-695
Signed-off-by: Santosh Yadav <santosh.k.yadav@ril.com>
ems/boco/src/main/java/org/onap/vfc/nfvo/emsdriver/collector/CollectMsgReceiverThread.java

index 6d99aea..f53a5ed 100644 (file)
@@ -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());