From 1a262cc89920570c79e4bbff4f518e0f0d98e094 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 14 Aug 2025 06:08:39 +0000 Subject: [PATCH] Bump commons-io:commons-io from 2.7 to 2.14.0 in /docs/documentation/tests (#41463) Bumps commons-io:commons-io from 2.7 to 2.14.0. --- updated-dependencies: - dependency-name: commons-io:commons-io dependency-version: 2.14.0 dependency-type: direct:development ... Signed-off-by: Alexander Schwartz Signed-off-by: dependabot[bot] Signed-off-by: Alexander Schwartz Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alexander Schwartz --- docs/documentation/tests/pom.xml | 2 +- .../keycloak/documentation/test/Config.java | 23 ++++++------------- 2 files changed, 8 insertions(+), 17 deletions(-) diff --git a/docs/documentation/tests/pom.xml b/docs/documentation/tests/pom.xml index 29e511aea95..28ab4c7f760 100644 --- a/docs/documentation/tests/pom.xml +++ b/docs/documentation/tests/pom.xml @@ -117,7 +117,7 @@ commons-io commons-io - 2.7 + 2.14.0 test diff --git a/docs/documentation/tests/src/test/java/org/keycloak/documentation/test/Config.java b/docs/documentation/tests/src/test/java/org/keycloak/documentation/test/Config.java index 05f3380dcde..6154f5f3553 100644 --- a/docs/documentation/tests/src/test/java/org/keycloak/documentation/test/Config.java +++ b/docs/documentation/tests/src/test/java/org/keycloak/documentation/test/Config.java @@ -7,7 +7,6 @@ import org.asciidoctor.OptionsBuilder; import org.asciidoctor.ast.Document; import java.io.File; -import java.io.IOException; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -153,25 +152,17 @@ public class Config { } private List loadConfig(String resource) { - try { - return IOUtils.readLines(Config.class.getResourceAsStream(resource), "utf-8"); - } catch (IOException e) { - throw new RuntimeException(e); - } + return IOUtils.readLines(Config.class.getResourceAsStream(resource), "utf-8"); } private Map loadConfigMap(String resource) { - try { - List lines = IOUtils.readLines(Config.class.getResourceAsStream(resource), "utf-8"); - Map m = new HashMap<>(); - for (String l : lines) { - String[] s = l.split("="); - m.put(s[0], s[1]); - } - return m; - } catch (IOException e) { - throw new RuntimeException(e); + List lines = IOUtils.readLines(Config.class.getResourceAsStream(resource), "utf-8"); + Map m = new HashMap<>(); + for (String l : lines) { + String[] s = l.split("="); + m.put(s[0], s[1]); } + return m; } }