Skip to content

Commit 2d2acc2

Browse files
committed
Fix checkstyle
1 parent d467e41 commit 2d2acc2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ int lookAhead() throws IOException {
125125
@Override
126126
public int read() throws IOException {
127127
final int current = super.read();
128-
if ((current == CR || current == LF && lastChar != CR)
129-
|| (current == END_OF_STREAM && lastChar != CR && lastChar != LF && lastChar != END_OF_STREAM)) {
128+
if ((current == CR || current == LF && lastChar != CR) ||
129+
(current == END_OF_STREAM && lastChar != CR && lastChar != LF && lastChar != END_OF_STREAM)) {
130130
eolCounter++;
131131
}
132132
lastChar = current;

src/site/resources/checkstyle/checkstyle-suppressions.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
"-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN"
2020
"https://checkstyle.org/dtds/suppressions_1_2.dtd">
2121
<suppressions>
22-
<suppress checks="LineLength" files="[\\/]CSVParser\.java$" lines="508"/>
22+
<suppress checks="LineLength" files="[\\/]CSVParser\.java$" lines="511"/>
2323
</suppressions>

0 commit comments

Comments
 (0)