From 94a9464e9d7dda0eb8d77fe5e0a008994784b449 Mon Sep 17 00:00:00 2001 From: Rishiraj Anand Date: Thu, 29 Aug 2024 14:58:55 +0530 Subject: [PATCH] changed test expected exceptions due upgrade of commons-io --- .../backend/allowlist/PackageNameAllowListLoader.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kie-wb-common-services/kie-wb-common-services-backend/src/main/java/org/kie/workbench/common/services/backend/allowlist/PackageNameAllowListLoader.java b/kie-wb-common-services/kie-wb-common-services-backend/src/main/java/org/kie/workbench/common/services/backend/allowlist/PackageNameAllowListLoader.java index c3d911d1158..b2e02f16768 100644 --- a/kie-wb-common-services/kie-wb-common-services-backend/src/main/java/org/kie/workbench/common/services/backend/allowlist/PackageNameAllowListLoader.java +++ b/kie-wb-common-services/kie-wb-common-services-backend/src/main/java/org/kie/workbench/common/services/backend/allowlist/PackageNameAllowListLoader.java @@ -16,8 +16,8 @@ package org.kie.workbench.common.services.backend.allowlist; -import java.io.IOException; import java.io.StringReader; +import java.io.UncheckedIOException; import java.util.Collections; import java.util.List; import javax.inject.Inject; @@ -80,7 +80,7 @@ private List parsePackages( final String content ) { } else { try { return IOUtils.readLines( new StringReader( content ) ); - } catch ( IOException ioe ) { + } catch ( UncheckedIOException ioe ) { logger.warn( "Unable to parse package names from '" + content + "'. Falling back to empty list." ); return Collections.emptyList(); }