commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1411920 - in /commons/proper/csv/trunk/src/main/java/org/apache/commons/csv: CSVFormat.java Constants.java
Date Tue, 20 Nov 2012 23:24:59 GMT
Author: sebb
Date: Tue Nov 20 23:24:58 2012
New Revision: 1411920

URL: http://svn.apache.org/viewvc?rev=1411920&view=rev
Log:
More useful to have double-quote as a Character

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

Modified: commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java
URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java?rev=1411920&r1=1411919&r2=1411920&view=diff
==============================================================================
--- commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java (original)
+++ commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java Tue Nov 20
23:24:58 2012
@@ -20,7 +20,7 @@ package org.apache.commons.csv;
 import static org.apache.commons.csv.Constants.COMMA;
 import static org.apache.commons.csv.Constants.CR;
 import static org.apache.commons.csv.Constants.CRLF;
-import static org.apache.commons.csv.Constants.DOUBLE_QUOTE;
+import static org.apache.commons.csv.Constants.DOUBLE_QUOTE_CHAR;
 import static org.apache.commons.csv.Constants.BACKSLASH;
 import static org.apache.commons.csv.Constants.LF;
 import static org.apache.commons.csv.Constants.TAB;
@@ -149,7 +149,7 @@ public class CSVFormat implements Serial
      * </ul>
      */
     public static CSVFormatBuilder newBuilder() {
-        return new CSVFormatBuilder(COMMA, DOUBLE_QUOTE, null, null, null, false, true, CRLF,
null);
+        return new CSVFormatBuilder(COMMA, DOUBLE_QUOTE_CHAR, null, null, null, false, true,
CRLF, null);
     }
 
     /**

Modified: commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Constants.java
URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Constants.java?rev=1411920&r1=1411919&r2=1411920&view=diff
==============================================================================
--- commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Constants.java (original)
+++ commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Constants.java Tue Nov 20
23:24:58 2012
@@ -33,7 +33,7 @@ final class Constants {
     static final char COMMENT = '#';
     
     static final char CR = '\r';
-    static final char DOUBLE_QUOTE = '"';
+    static final Character DOUBLE_QUOTE_CHAR = Character.valueOf('"');
     static final char BACKSLASH = '\\';
     static final char FF = '\f';
     static final char LF = '\n';



Mime
View raw message