From 5d702671f63b75e50a8675d981df5981916abda5 Mon Sep 17 00:00:00 2001 From: dan-s1 Date: Mon, 13 May 2024 17:57:37 +0000 Subject: [PATCH] NIFI-13222 Replaced deprecated commons-compress IOUtils.closeQuietly This closes #8822 Signed-off-by: David Handermann --- c2/c2-client-bundle/c2-client-service/pom.xml | 4 ++++ .../service/operation/TransferDebugOperationHandler.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/c2/c2-client-bundle/c2-client-service/pom.xml b/c2/c2-client-bundle/c2-client-service/pom.xml index 7a9260f7e9..eb03b5c6be 100644 --- a/c2/c2-client-bundle/c2-client-service/pom.xml +++ b/c2/c2-client-bundle/c2-client-service/pom.xml @@ -52,6 +52,10 @@ limitations under the License. c2-protocol-api 2.0.0-SNAPSHOT + + commons-io + commons-io + org.apache.commons commons-compress diff --git a/c2/c2-client-bundle/c2-client-service/src/main/java/org/apache/nifi/c2/client/service/operation/TransferDebugOperationHandler.java b/c2/c2-client-bundle/c2-client-service/src/main/java/org/apache/nifi/c2/client/service/operation/TransferDebugOperationHandler.java index f44f39246e..4544b07dd8 100644 --- a/c2/c2-client-bundle/c2-client-service/src/main/java/org/apache/nifi/c2/client/service/operation/TransferDebugOperationHandler.java +++ b/c2/c2-client-bundle/c2-client-service/src/main/java/org/apache/nifi/c2/client/service/operation/TransferDebugOperationHandler.java @@ -24,7 +24,7 @@ import static java.nio.file.Files.walk; import static java.util.Collections.emptyMap; import static java.util.Optional.empty; import static java.util.Optional.ofNullable; -import static org.apache.commons.compress.utils.IOUtils.closeQuietly; +import static org.apache.commons.io.IOUtils.closeQuietly; import static org.apache.commons.lang3.StringUtils.EMPTY; import static org.apache.nifi.c2.protocol.api.C2OperationState.OperationState.FULLY_APPLIED; import static org.apache.nifi.c2.protocol.api.C2OperationState.OperationState.NOT_APPLIED;