Skip to content

Commit 5e12903

Browse files
committed
private fields are unchanged after construction, so might as well be final
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1298221 13f79535-47bb-0310-9956-ffa450edef68
1 parent 78d3d98 commit 5e12903

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public class CSVParser implements Iterable<String[]> {
6464
/** Immutable empty String array. */
6565
private static final String[] EMPTY_STRING_ARRAY = new String[0];
6666

67-
private CSVLexer lexer;
67+
private final CSVLexer lexer;
6868

6969
// the following objects are shared to reduce garbage
7070

@@ -235,10 +235,10 @@ class CSVLexer {
235235

236236
private final CharBuffer wsBuf = new CharBuffer();
237237

238-
private CSVFormat format;
238+
private final CSVFormat format;
239239

240240
/** The input stream */
241-
private ExtendedBufferedReader in;
241+
private final ExtendedBufferedReader in;
242242

243243
/**
244244
* Token is an internal token representation.

0 commit comments

Comments
 (0)