commit | 58f195402881a8b59fe394578c133fb7689c06d1 | [log] [tgz] |
---|---|---|
author | surya-huawei <a.u.surya@huawei.com> | Sun Sep 17 23:10:57 2017 +0530 |
committer | surya-huawei <a.u.surya@huawei.com> | Sun Sep 17 23:13:35 2017 +0530 |
tree | 6ee6eb29f699940397c576b752f44d8fe14f1d32 | |
parent | b9e5ea7161c1f09fdf2a8955cb1ed3f1f93483f3 [diff] |
Fix Sonar issue in sli/northbound module One major issue * move string literals to left side of string comparison Issue-Id: CCSDK-87 Change-Id: Ibd1146a8a12dccc56fb620fe5830efb545ac39a1 Signed-off-by: surya-huawei <a.u.surya@huawei.com>
diff --git a/dataChange/provider/src/main/java/org/onap/ccsdk/sli/northbound/DataChangeProvider.java b/dataChange/provider/src/main/java/org/onap/ccsdk/sli/northbound/DataChangeProvider.java index d47bcd1..0977fa0 100644 --- a/dataChange/provider/src/main/java/org/onap/ccsdk/sli/northbound/DataChangeProvider.java +++ b/dataChange/provider/src/main/java/org/onap/ccsdk/sli/northbound/DataChangeProvider.java
@@ -148,7 +148,7 @@ String errorCode = serviceDataBuilder.getDataChangeResponseCode(); - if ( errorCode != null && errorCode.length() != 0 && !( errorCode.equals("0")|| errorCode.equals("200"))) { + if (!("0".equals(errorCode) || "200".equals(errorCode))) { LOG.error("Returned FAILED for "+SVC_OPERATION+" error code: '" + errorCode + "'"); } else { LOG.info("Returned SUCCESS for "+SVC_OPERATION+" ");