aboutsummaryrefslogtreecommitdiffstats
path: root/cps-ncmp-service
diff options
context:
space:
mode:
authormkerrigan <michael.kerrigan@est.tech>2021-06-08 12:58:08 +0100
committerRishi Chail <rishi.chail@est.tech>2021-06-09 10:14:51 +0000
commit171f17003d3e130385de3cfda04f44447e421f61 (patch)
tree5c0159bdd7f59071c71b4ae44bed2a4498949f6b /cps-ncmp-service
parent3241cda7c24efa66e1d0f6820934e82593b835af (diff)
Replaced isEmpty with not hasText
Sonarcloud reported that isEmpty is deprecated.Not hasText will give the same behavior Issue-ID: CPS-89 Change-Id: I45b1723dad414bfc08d4ed33931d6c21eb5e6185 Signed-off-by: mkerrigan <michael.kerrigan@est.tech>
Diffstat (limited to 'cps-ncmp-service')
-rwxr-xr-xcps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/NetworkCmProxyDataServiceImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/NetworkCmProxyDataServiceImpl.java b/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/NetworkCmProxyDataServiceImpl.java
index bdb71bf625..5aadb3f0fe 100755
--- a/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/NetworkCmProxyDataServiceImpl.java
+++ b/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/NetworkCmProxyDataServiceImpl.java
@@ -60,7 +60,7 @@ public class NetworkCmProxyDataServiceImpl implements NetworkCmProxyDataService
@Override
public void createDataNode(final String cmHandle, final String parentNodeXpath, final String jsonData) {
- if (StringUtils.isEmpty(parentNodeXpath) || "/".equals(parentNodeXpath)) {
+ if (!StringUtils.hasText(parentNodeXpath) || "/".equals(parentNodeXpath)) {
cpsDataService.saveData(getDataspaceName(), cmHandle, jsonData);
} else {
cpsDataService.saveData(getDataspaceName(), cmHandle, parentNodeXpath, jsonData);