mirror of
https://github.com/apache/commons-csv.git
synced 2025-02-17 07:26:32 +00:00
Made the fields of CSVFormat volatile to ensure its thread safety (SANDBOX-408)
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1298910 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
84e46bd585
commit
7ccc4c7c01
@ -29,15 +29,15 @@ import java.io.StringWriter;
|
||||
*/
|
||||
public class CSVFormat implements Cloneable, Serializable {
|
||||
|
||||
private char delimiter = ',';
|
||||
private char encapsulator = '"';
|
||||
private char commentStart = DISABLED;
|
||||
private char escape = DISABLED;
|
||||
private boolean leadingSpacesIgnored = true;
|
||||
private boolean trailingSpacesIgnored = true;
|
||||
private boolean unicodeEscapesInterpreted = false;
|
||||
private boolean emptyLinesIgnored = true;
|
||||
private String lineSeparator = "\r\n";
|
||||
private volatile char delimiter = ',';
|
||||
private volatile char encapsulator = '"';
|
||||
private volatile char commentStart = DISABLED;
|
||||
private volatile char escape = DISABLED;
|
||||
private volatile boolean leadingSpacesIgnored = true;
|
||||
private volatile boolean trailingSpacesIgnored = true;
|
||||
private volatile boolean unicodeEscapesInterpreted = false;
|
||||
private volatile boolean emptyLinesIgnored = true;
|
||||
private volatile String lineSeparator = "\r\n";
|
||||
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user