From 909344010556b6ddbf53c898c2e099525676c09a Mon Sep 17 00:00:00 2001 From: lukegleeson Date: Mon, 17 Apr 2023 12:22:07 +0100 Subject: Remove CollectionUtils dependency Remove dependency creating pipeline issue Issue-ID: CPS-1626 Signed-off-by: lukegleeson Change-Id: I64a6019a8196aa98dd3874d08f373c4fb9e3b8c9 --- .../main/java/org/onap/cps/spi/repository/FragmentQueryBuilder.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cps-ri') 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() + " "); } }); -- cgit 1.2.3-korg