aboutsummaryrefslogtreecommitdiffstats
path: root/bpmn
diff options
context:
space:
mode:
authorSeshu Kumar M <seshu.kumar.m@huawei.com>2019-05-13 04:57:52 +0000
committerGerrit Code Review <gerrit@onap.org>2019-05-13 04:57:52 +0000
commite43909d8b17b2a243942c5bf299ab2a0ad5bfb3d (patch)
tree57edb6e6b72ef752f864c2ea6dff40471a97961e /bpmn
parent52d90269b975485e0c0221bc7d2b1252c341d65c (diff)
parent95ff3e1578b1ea0307313d4091f6881b3d05cb59 (diff)
Merge "fix newest sonar bugs"
Diffstat (limited to 'bpmn')
-rw-r--r--bpmn/so-bpmn-infrastructure-common/src/main/java/org/onap/so/bpmn/infrastructure/pnf/dmaap/PnfEventReadyDmaapClient.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/bpmn/so-bpmn-infrastructure-common/src/main/java/org/onap/so/bpmn/infrastructure/pnf/dmaap/PnfEventReadyDmaapClient.java b/bpmn/so-bpmn-infrastructure-common/src/main/java/org/onap/so/bpmn/infrastructure/pnf/dmaap/PnfEventReadyDmaapClient.java
index 9f8a456002..357b571a5c 100644
--- a/bpmn/so-bpmn-infrastructure-common/src/main/java/org/onap/so/bpmn/infrastructure/pnf/dmaap/PnfEventReadyDmaapClient.java
+++ b/bpmn/so-bpmn-infrastructure-common/src/main/java/org/onap/so/bpmn/infrastructure/pnf/dmaap/PnfEventReadyDmaapClient.java
@@ -135,7 +135,8 @@ public class PnfEventReadyDmaapClient implements DmaapClient {
HttpResponse response = httpClient.execute(getRequest);
List<String> idList = getPnfCorrelationIdListFromResponse(response);
- if (idList != null && idList.size() > 0) {
+ // idList is never null
+ if (!idList.isEmpty()) {
// send only body of response
registerClientResponse(idList.get(0), EntityUtils.toString(response.getEntity(), "UTF-8"));
}