mirror of
https://github.com/apache/commons-csv.git
synced 2025-02-10 03:56:05 +00:00
[CSV] deprecated setStrategy, made most private members final
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/sandbox/csv/trunk@483576 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a05816d2e7
commit
68e75ee16d
@ -69,16 +69,17 @@ public class CSVParser {
|
|||||||
private static final String[] EMPTY_STRING_ARRAY = new String[0];
|
private static final String[] EMPTY_STRING_ARRAY = new String[0];
|
||||||
|
|
||||||
// the input stream
|
// the input stream
|
||||||
private ExtendedBufferedReader in;
|
private final ExtendedBufferedReader in;
|
||||||
|
|
||||||
|
// TODO: this can be made final if setStrategy is removed
|
||||||
private CSVStrategy strategy;
|
private CSVStrategy strategy;
|
||||||
|
|
||||||
// the following objects are shared to reduce garbage
|
// the following objects are shared to reduce garbage
|
||||||
/** A record buffer for getLine(). Grows as necessary and is reused. */
|
/** A record buffer for getLine(). Grows as necessary and is reused. */
|
||||||
private ArrayList record = new ArrayList();
|
private final ArrayList record = new ArrayList();
|
||||||
private Token reusableToken = new Token();
|
private final Token reusableToken = new Token();
|
||||||
private CharBuffer wsBuf = new CharBuffer();
|
private final CharBuffer wsBuf = new CharBuffer();
|
||||||
private CharBuffer code = new CharBuffer(4);
|
private final CharBuffer code = new CharBuffer(4);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -567,6 +568,7 @@ public class CSVParser {
|
|||||||
* Sets the specified CSV Strategy
|
* Sets the specified CSV Strategy
|
||||||
*
|
*
|
||||||
* @return current instance of CSVParser to allow chained method calls
|
* @return current instance of CSVParser to allow chained method calls
|
||||||
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
public CSVParser setStrategy(CSVStrategy strategy) {
|
public CSVParser setStrategy(CSVStrategy strategy) {
|
||||||
this.strategy = strategy;
|
this.strategy = strategy;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user