Skip to content

Commit

Permalink
Add PMD check to default goal and fix only 2 remaining PMD warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Jul 5, 2021
1 parent d8d0804 commit c6c7676
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -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>
Expand Down
Expand Up @@ -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;
Expand Down

0 comments on commit c6c7676

Please sign in to comment.