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>
@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);