Skip to content

Commit 7ccc4c7

Browse files
committed
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
1 parent 84e46bd commit 7ccc4c7

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@
2929
*/
3030
public class CSVFormat implements Cloneable, Serializable {
3131

32-
private char delimiter = ',';
33-
private char encapsulator = '"';
34-
private char commentStart = DISABLED;
35-
private char escape = DISABLED;
36-
private boolean leadingSpacesIgnored = true;
37-
private boolean trailingSpacesIgnored = true;
38-
private boolean unicodeEscapesInterpreted = false;
39-
private boolean emptyLinesIgnored = true;
40-
private String lineSeparator = "\r\n";
32+
private volatile char delimiter = ',';
33+
private volatile char encapsulator = '"';
34+
private volatile char commentStart = DISABLED;
35+
private volatile char escape = DISABLED;
36+
private volatile boolean leadingSpacesIgnored = true;
37+
private volatile boolean trailingSpacesIgnored = true;
38+
private volatile boolean unicodeEscapesInterpreted = false;
39+
private volatile boolean emptyLinesIgnored = true;
40+
private volatile String lineSeparator = "\r\n";
4141

4242

4343
/**

0 commit comments

Comments
 (0)