From 83b5a60cc08501b570a0c4d0b4cdfceb1b88d6b7 Mon Sep 17 00:00:00 2001 From: Vladysl <45620393+Vladysl@users.noreply.github.com> Date: Mon, 8 Apr 2024 21:46:54 +0300 Subject: [PATCH] added commons-collections4 library instead of commons-collections (#4427) Co-authored-by: Narekmat <47845266+Narekmat@users.noreply.github.com> --- kafka-ui-api/pom.xml | 13 +++++++++++-- .../provectus/kafka/ui/model/rbac/Permission.java | 2 +- .../ui/service/integration/odd/ConnectorInfo.java | 2 +- .../kafka/ui/service/rbac/AccessControlService.java | 2 +- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/kafka-ui-api/pom.xml b/kafka-ui-api/pom.xml index 1e0f952eb16..d572a4ffa34 100644 --- a/kafka-ui-api/pom.xml +++ b/kafka-ui-api/pom.xml @@ -81,6 +81,12 @@ io.confluent kafka-json-schema-serializer ${confluent.version} + + + commons-collections + commons-collections + + io.confluent @@ -135,6 +141,11 @@ commons-pool2 ${apache.commons.version} + + org.apache.commons + commons-collections4 + 4.4 + org.testcontainers testcontainers @@ -238,8 +249,6 @@ org.springframework.security spring-security-ldap - - org.codehaus.groovy groovy-jsr223 diff --git a/kafka-ui-api/src/main/java/com/provectus/kafka/ui/model/rbac/Permission.java b/kafka-ui-api/src/main/java/com/provectus/kafka/ui/model/rbac/Permission.java index 56b0a098026..69c16af5720 100644 --- a/kafka-ui-api/src/main/java/com/provectus/kafka/ui/model/rbac/Permission.java +++ b/kafka-ui-api/src/main/java/com/provectus/kafka/ui/model/rbac/Permission.java @@ -23,7 +23,7 @@ import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.ToString; -import org.apache.commons.collections.CollectionUtils; +import org.apache.commons.collections4.CollectionUtils; import org.springframework.util.Assert; @Getter diff --git a/kafka-ui-api/src/main/java/com/provectus/kafka/ui/service/integration/odd/ConnectorInfo.java b/kafka-ui-api/src/main/java/com/provectus/kafka/ui/service/integration/odd/ConnectorInfo.java index a7844579bfd..daec183a4cc 100644 --- a/kafka-ui-api/src/main/java/com/provectus/kafka/ui/service/integration/odd/ConnectorInfo.java +++ b/kafka-ui-api/src/main/java/com/provectus/kafka/ui/service/integration/odd/ConnectorInfo.java @@ -8,7 +8,7 @@ import java.util.function.Function; import java.util.stream.Stream; import javax.annotation.Nullable; -import org.apache.commons.collections.CollectionUtils; +import org.apache.commons.collections4.CollectionUtils; import org.opendatadiscovery.oddrn.JdbcUrlParser; import org.opendatadiscovery.oddrn.model.HivePath; import org.opendatadiscovery.oddrn.model.MysqlPath; diff --git a/kafka-ui-api/src/main/java/com/provectus/kafka/ui/service/rbac/AccessControlService.java b/kafka-ui-api/src/main/java/com/provectus/kafka/ui/service/rbac/AccessControlService.java index 4ff311ff910..62a2962bed9 100644 --- a/kafka-ui-api/src/main/java/com/provectus/kafka/ui/service/rbac/AccessControlService.java +++ b/kafka-ui-api/src/main/java/com/provectus/kafka/ui/service/rbac/AccessControlService.java @@ -33,7 +33,7 @@ import javax.annotation.Nullable; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; -import org.apache.commons.collections.CollectionUtils; +import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.lang3.StringUtils; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.core.env.Environment;