Skip to content

Commit

Permalink
changed test expected exceptions due upgrade of commons-io
Browse files Browse the repository at this point in the history
  • Loading branch information
RishiRajAnand authored and mareknovotny committed Sep 3, 2024
1 parent cbb4803 commit 94a9464
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -80,7 +80,7 @@ private List<String> 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();
}
Expand Down

0 comments on commit 94a9464

Please sign in to comment.