Skip to content

Commit 6b069cf

Browse files
committed
Fix PMDs: Unnecessary use of fully qualified name 'Constants.END_OF_STREAM' due to existing static import 'org.apache.commons.csv.Constants.END_OF_STREAM'.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1721770 13f79535-47bb-0310-9956-ffa450edef68
1 parent 290fdff commit 6b069cf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ private Token parseSimpleToken(final Token token, int ch) throws IOException {
198198
break;
199199
} else if (isEscape(ch)) {
200200
final int unescaped = readEscape();
201-
if (unescaped == Constants.END_OF_STREAM) { // unexpected char after escape
201+
if (unescaped == END_OF_STREAM) { // unexpected char after escape
202202
token.content.append((char) ch).append((char) reader.getLastChar());
203203
} else {
204204
token.content.append((char) unescaped);
@@ -246,7 +246,7 @@ private Token parseEncapsulatedToken(final Token token) throws IOException {
246246

247247
if (isEscape(c)) {
248248
final int unescaped = readEscape();
249-
if (unescaped == Constants.END_OF_STREAM) { // unexpected char after escape
249+
if (unescaped == END_OF_STREAM) { // unexpected char after escape
250250
token.content.append((char) c).append((char) reader.getLastChar());
251251
} else {
252252
token.content.append((char) unescaped);

0 commit comments

Comments
 (0)