Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pmd-ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<rule ref="category/java/bestpractices.xml/GuardLogStatement" />
<rule ref="category/java/bestpractices.xml/ImplicitFunctionalInterface" />
<rule ref="category/java/bestpractices.xml/JUnit4SuitesShouldUseSuiteAnnotation" />
<rule ref="category/java/bestpractices.xml/JUnit5TestShouldBePackagePrivate" />
<rule ref="category/java/bestpractices.xml/JUnitJupiterTestShouldBePackagePrivate" />
<rule ref="category/java/bestpractices.xml/JUnitUseExpected" />
<rule ref="category/java/bestpractices.xml/MethodReturnsInternalArray" />
<rule ref="category/java/bestpractices.xml/MissingOverride" />
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ if (isJava21orHigher) {
// PMD linter

pmd {
toolVersion = "7.24.0"
toolVersion = "7.25.0"
ruleSetFiles = files("${rootDir}/.pmd-ruleset.xml")
consoleOutput = true
ignoreFailures = false
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/plumelib/util/FilesPlume.java
Original file line number Diff line number Diff line change
Expand Up @@ -1313,7 +1313,8 @@ public static void streamCopy(InputStream from, OutputStream to) {
* @param is input stream to read
* @return a String containing all the characters from the input stream
*/
@SuppressWarnings("JdkObsolete") // due to use of string "UTF-8", remove in Java 11+
// due to use of string "UTF-8", remove in Java 11+
@SuppressWarnings({"JdkObsolete", "UseStandardCharsets"})
Comment thread
wmdietl marked this conversation as resolved.
Outdated
public static String streamString(InputStream is) {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
streamCopy(is, baos);
Expand Down
Loading