Skip to content

Commit c6c7676

Browse files
committed
Add PMD check to default goal and fix only 2 remaining PMD warnings.
1 parent d8d0804 commit c6c7676

2 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
@@ -184,7 +184,7 @@
184184
</properties>
185185

186186
<build>
187-
<defaultGoal>clean package apache-rat:check japicmp:cmp checkstyle:check spotbugs:check javadoc:javadoc</defaultGoal>
187+
<defaultGoal>clean package apache-rat:check japicmp:cmp checkstyle:check spotbugs:check pmd:check javadoc:javadoc</defaultGoal>
188188
<pluginManagement>
189189
<plugins>
190190
<plugin>

src/main/java/org/apache/commons/csv/ExtendedBufferedReader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ char[] lookAhead(final int n) throws IOException {
142142
@Override
143143
public int read() throws IOException {
144144
final int current = super.read();
145-
if ((current == CR || current == LF && lastChar != CR) ||
146-
(current == END_OF_STREAM && lastChar != CR && lastChar != LF && lastChar != END_OF_STREAM)) {
145+
if (current == CR || current == LF && lastChar != CR ||
146+
current == END_OF_STREAM && lastChar != CR && lastChar != LF && lastChar != END_OF_STREAM) {
147147
eolCounter++;
148148
}
149149
lastChar = current;

0 commit comments

Comments
 (0)