You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2012/03/08 00:38:46 UTC

svn commit: r1298221 - /commons/sandbox/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java

Author: sebb
Date: Wed Mar  7 23:38:46 2012
New Revision: 1298221

URL: http://svn.apache.org/viewvc?rev=1298221&view=rev
Log:
private fields are unchanged after construction, so might as well be final

Modified:
    commons/sandbox/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java

Modified: commons/sandbox/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java
URL: http://svn.apache.org/viewvc/commons/sandbox/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java?rev=1298221&r1=1298220&r2=1298221&view=diff
==============================================================================
--- commons/sandbox/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java (original)
+++ commons/sandbox/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java Wed Mar  7 23:38:46 2012
@@ -64,7 +64,7 @@ public class CSVParser implements Iterab
     /** Immutable empty String array. */
     private static final String[] EMPTY_STRING_ARRAY = new String[0];
 
-    private CSVLexer lexer;
+    private final CSVLexer lexer;
     
     // the following objects are shared to reduce garbage
     
@@ -235,10 +235,10 @@ class CSVLexer {
     
     private final CharBuffer wsBuf = new CharBuffer();
     
-    private CSVFormat format;
+    private final CSVFormat format;
     
     /** The input stream */
-    private ExtendedBufferedReader in;
+    private final ExtendedBufferedReader in;
 
     /**
      * Token is an internal token representation.