commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ebo...@apache.org
Subject svn commit: r1298910 - /commons/sandbox/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java
Date Fri, 09 Mar 2012 16:42:06 GMT
Author: ebourg
Date: Fri Mar  9 16:42:06 2012
New Revision: 1298910

URL: http://svn.apache.org/viewvc?rev=1298910&view=rev
Log:
Made the fields of CSVFormat volatile to ensure its thread safety (SANDBOX-408)

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

Modified: commons/sandbox/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java
URL: http://svn.apache.org/viewvc/commons/sandbox/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java?rev=1298910&r1=1298909&r2=1298910&view=diff
==============================================================================
--- commons/sandbox/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java (original)
+++ commons/sandbox/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java Fri Mar
 9 16:42:06 2012
@@ -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";
 
 
     /**



Mime
View raw message