Skip to content

Commit 885c8a4

Browse files
author
Gary Gregory
committed
Enable PMD check in the default Maven goal.
1 parent 1bd3a1f commit 885c8a4

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ file comparators, endian transformation classes, and much more.
357357

358358
<build>
359359
<!-- japicmp:cmp needs package to work from a jar -->
360-
<defaultGoal>clean verify apache-rat:check japicmp:cmp checkstyle:check javadoc:javadoc</defaultGoal>
360+
<defaultGoal>clean verify apache-rat:check japicmp:cmp checkstyle:check pmd:check javadoc:javadoc</defaultGoal>
361361
<pluginManagement>
362362
<plugins>
363363
<plugin>

src/main/java/org/apache/commons/io/file/PathUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ public static boolean fileContentEquals(final Path path1, final Path path2, fina
721721
// same file
722722
return true;
723723
}
724-
try (InputStream inputStream1 = Files.newInputStream(nPath1, openOptions);
724+
try (InputStream inputStream1 = Files.newInputStream(nPath1, openOptions);
725725
InputStream inputStream2 = Files.newInputStream(nPath2, openOptions)) {
726726
return IOUtils.contentEquals(inputStream1, inputStream2);
727727
}

src/main/java/org/apache/commons/io/input/ReversedLinesFileReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ private int getNewLineMatchByteCount(final byte[] data, final int i) {
124124
*
125125
* @return the line or null
126126
*/
127-
private String readLine() {
127+
private String readLine() { //NOPMD Bug in PMD
128128

129129
String line = null;
130130
int newLineMatchByteCount;

0 commit comments

Comments
 (0)