Skip to content
Permalink
Browse files
Add PMD check to default goal and fix only 2 remaining PMD warnings.
  • Loading branch information
garydgregory committed Jul 5, 2021
1 parent d8d0804 commit c6c7676b56040c8bc20ed7ef7a2a2cae55341988
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
@@ -184,7 +184,7 @@
</properties>

<build>
<defaultGoal>clean package apache-rat:check japicmp:cmp checkstyle:check spotbugs:check javadoc:javadoc</defaultGoal>
<defaultGoal>clean package apache-rat:check japicmp:cmp checkstyle:check spotbugs:check pmd:check javadoc:javadoc</defaultGoal>
<pluginManagement>
<plugins>
<plugin>
@@ -142,8 +142,8 @@ char[] lookAhead(final int n) throws IOException {
@Override
public int read() throws IOException {
final int current = super.read();
if ((current == CR || current == LF && lastChar != CR) ||
(current == END_OF_STREAM && lastChar != CR && lastChar != LF && lastChar != END_OF_STREAM)) {
if (current == CR || current == LF && lastChar != CR ||
current == END_OF_STREAM && lastChar != CR && lastChar != LF && lastChar != END_OF_STREAM) {
eolCounter++;
}
lastChar = current;

0 comments on commit c6c7676

Please sign in to comment.