Skip to content

Commit

Permalink
Merge pull request #826 from uhafner/revert-commons-io
Browse files Browse the repository at this point in the history
Revert commons-io to 2.11.0
  • Loading branch information
uhafner authored Oct 10, 2023
2 parents 9bc871b + 51c8802 commit a1c6ec6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions etc/pmd-configuration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<exclude name="OnlyOneReturn"/>
<exclude name="EmptyMethodInAbstractClassShouldBeAbstract"/>
<exclude name="ConfusingTernary"/>
<exclude name="LocalVariableNamingConventions"/>
<exclude name="ClassNamingConventions"/>
</rule>
<rule ref="category/java/codestyle.xml/UnnecessaryConstructor">
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<!-- Project Dependencies Configuration -->
<spotbugs.version>4.7.3</spotbugs.version>
<commons.lang.version>3.13.0</commons.lang.version>
<commons.io.version>2.14.0</commons.io.version>
<commons.io.version>2.11.0</commons.io.version>
<javax.annotation-api.version>1.3.2</javax.annotation-api.version>
<byte-buddy.version>1.14.9</byte-buddy.version>

Expand Down
5 changes: 2 additions & 3 deletions src/main/java/edu/hm/hafner/util/SecureXmlParserFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,8 @@ public Document readDocument(final Reader reader, final Charset charset) {
}
}

private InputSource createInputSource(final Reader reader, final Charset charset) throws IOException {
var inputStream = ReaderInputStream.builder().setCharset(charset).setReader(reader).get();
return new InputSource(inputStream);
private InputSource createInputSource(final Reader reader, final Charset charset) {
return new InputSource(new ReaderInputStream(reader, charset));
}

/**
Expand Down

0 comments on commit a1c6ec6

Please sign in to comment.