You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2020/10/02 21:13:36 UTC
[commons-csv] 01/03: Fix checkstyle
This is an automated email from the ASF dual-hosted git repository.
aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-csv.git
commit 2d2acc2fdec61a2b245c93590dab8675bb570f04
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Fri Oct 2 22:04:43 2020 +0100
Fix checkstyle
---
src/main/java/org/apache/commons/csv/ExtendedBufferedReader.java | 4 ++--
src/site/resources/checkstyle/checkstyle-suppressions.xml | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/main/java/org/apache/commons/csv/ExtendedBufferedReader.java b/src/main/java/org/apache/commons/csv/ExtendedBufferedReader.java
index 9731f81..6668611 100644
--- a/src/main/java/org/apache/commons/csv/ExtendedBufferedReader.java
+++ b/src/main/java/org/apache/commons/csv/ExtendedBufferedReader.java
@@ -125,8 +125,8 @@ final class ExtendedBufferedReader extends BufferedReader {
@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;
diff --git a/src/site/resources/checkstyle/checkstyle-suppressions.xml b/src/site/resources/checkstyle/checkstyle-suppressions.xml
index d6b6e9c..402525f 100644
--- a/src/site/resources/checkstyle/checkstyle-suppressions.xml
+++ b/src/site/resources/checkstyle/checkstyle-suppressions.xml
@@ -19,5 +19,5 @@
"-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN"
"https://checkstyle.org/dtds/suppressions_1_2.dtd">
<suppressions>
- <suppress checks="LineLength" files="[\\/]CSVParser\.java$" lines="508"/>
+ <suppress checks="LineLength" files="[\\/]CSVParser\.java$" lines="511"/>
</suppressions>