File tree Expand file tree Collapse file tree
src/java/org/apache/commons/csv Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -69,16 +69,17 @@ public class CSVParser {
6969 private static final String [] EMPTY_STRING_ARRAY = new String [0 ];
7070
7171 // the input stream
72- private ExtendedBufferedReader in ;
72+ private final ExtendedBufferedReader in ;
7373
74+ // TODO: this can be made final if setStrategy is removed
7475 private CSVStrategy strategy ;
7576
7677 // the following objects are shared to reduce garbage
7778 /** A record buffer for getLine(). Grows as necessary and is reused. */
78- private ArrayList record = new ArrayList ();
79- private Token reusableToken = new Token ();
80- private CharBuffer wsBuf = new CharBuffer ();
81- private CharBuffer code = new CharBuffer (4 );
79+ private final ArrayList record = new ArrayList ();
80+ private final Token reusableToken = new Token ();
81+ private final CharBuffer wsBuf = new CharBuffer ();
82+ private final CharBuffer code = new CharBuffer (4 );
8283
8384
8485 /**
@@ -567,6 +568,7 @@ protected int unicodeEscapeLexer(int c) throws IOException {
567568 * Sets the specified CSV Strategy
568569 *
569570 * @return current instance of CSVParser to allow chained method calls
571+ * @deprecated
570572 */
571573 public CSVParser setStrategy (CSVStrategy strategy ) {
572574 this .strategy = strategy ;
You can’t perform that action at this time.
0 commit comments