summaryrefslogtreecommitdiffstats
path: root/cps-ri/src/main/java
diff options
context:
space:
mode:
authorlukegleeson <luke.gleeson@est.tech>2023-04-17 12:22:07 +0100
committerlukegleeson <luke.gleeson@est.tech>2023-04-17 12:55:59 +0100
commit909344010556b6ddbf53c898c2e099525676c09a (patch)
treee130559af9280484aa4157d78c683271a094d2ab /cps-ri/src/main/java
parentd6c207d0ade19f19216ebd642d2511a768dfb4ab (diff)
Remove CollectionUtils dependency
Remove dependency creating pipeline issue Issue-ID: CPS-1626 Signed-off-by: lukegleeson <luke.gleeson@est.tech> Change-Id: I64a6019a8196aa98dd3874d08f373c4fb9e3b8c9
Diffstat (limited to 'cps-ri/src/main/java')
-rw-r--r--cps-ri/src/main/java/org/onap/cps/spi/repository/FragmentQueryBuilder.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/cps-ri/src/main/java/org/onap/cps/spi/repository/FragmentQueryBuilder.java b/cps-ri/src/main/java/org/onap/cps/spi/repository/FragmentQueryBuilder.java
index ca6e18bad3..1643ca078a 100644
--- a/cps-ri/src/main/java/org/onap/cps/spi/repository/FragmentQueryBuilder.java
+++ b/cps-ri/src/main/java/org/onap/cps/spi/repository/FragmentQueryBuilder.java
@@ -31,7 +31,6 @@ import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
-import org.apache.commons.collections4.CollectionUtils;
import org.onap.cps.cpspath.parser.CpsPathPrefixType;
import org.onap.cps.cpspath.parser.CpsPathQuery;
import org.onap.cps.spi.entities.FragmentEntity;
@@ -91,7 +90,7 @@ public class FragmentQueryBuilder {
cpsPathQuery.getLeavesData().entrySet().forEach(entry -> {
sqlStringBuilder.append(" attributes @> ");
sqlStringBuilder.append("'" + jsonObjectMapper.asJsonString(entry) + "'");
- if (!CollectionUtils.isEmpty(booleanOperatorsQueue)) {
+ if (!(booleanOperatorsQueue == null || booleanOperatorsQueue.isEmpty())) {
sqlStringBuilder.append(" " + booleanOperatorsQueue.poll() + " ");
}
});