Remove useless double assignment in PnfEventReadyDmaapClient.​unregister 80/93180/2
authorArtem Naluzhnyy <A.Naluzhnyy@samsung.com>
Fri, 9 Aug 2019 10:01:51 +0000 (12:01 +0200)
committerArtem Naluzhnyy <a.naluzhnyy@samsung.com>
Fri, 9 Aug 2019 14:10:18 +0000 (14:10 +0000)
Coverity-scan: CID-211458
Issue-ID: SO-2211
Signed-off-by: Artem Naluzhnyy <A.Naluzhnyy@samsung.com>
Change-Id: I670bb1f5684b90f0d4d01542c77c882e3d4966e4

bpmn/so-bpmn-infrastructure-common/src/main/java/org/onap/so/bpmn/infrastructure/pnf/dmaap/PnfEventReadyDmaapClient.java

index 357b571..48061db 100644 (file)
@@ -90,7 +90,7 @@ public class PnfEventReadyDmaapClient implements DmaapClient {
     @Override
     public synchronized Runnable unregister(String pnfCorrelationId) {
         logger.debug("unregistering from pnf ready dmaap event for pnf correlation id: {}", pnfCorrelationId);
-        Runnable runnable = runnable = pnfCorrelationIdToThreadMap.remove(pnfCorrelationId);
+        Runnable runnable = pnfCorrelationIdToThreadMap.remove(pnfCorrelationId);
         synchronized (updateInfoMap) {
             for (int i = updateInfoMap.size() - 1; i >= 0; i--) {
                 if (!updateInfoMap.get(i).containsKey("pnfCorrelationId"))