mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-09 23:12:06 -03:30
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 <aschwart@redhat.com> Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Alexander Schwartz <aschwart@redhat.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alexander Schwartz <aschwart@redhat.com>
This commit is contained in:
parent
a8fa4ecb14
commit
1a262cc899
@ -117,7 +117,7 @@
|
||||
<dependency>
|
||||
<groupId>commons-io</groupId>
|
||||
<artifactId>commons-io</artifactId>
|
||||
<version>2.7</version>
|
||||
<version>2.14.0</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
||||
@ -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<String> 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<String, String> loadConfigMap(String resource) {
|
||||
try {
|
||||
List<String> lines = IOUtils.readLines(Config.class.getResourceAsStream(resource), "utf-8");
|
||||
Map<String, String> 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<String> lines = IOUtils.readLines(Config.class.getResourceAsStream(resource), "utf-8");
|
||||
Map<String, String> m = new HashMap<>();
|
||||
for (String l : lines) {
|
||||
String[] s = l.split("=");
|
||||
m.put(s[0], s[1]);
|
||||
}
|
||||
return m;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user