From e5a7b27224f01c6a692c414cc3aa53fd7a98f268 Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Tue, 20 Nov 2012 23:24:58 +0000 Subject: [PATCH] More useful to have double-quote as a Character git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1411920 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/commons/csv/CSVFormat.java | 4 ++-- src/main/java/org/apache/commons/csv/Constants.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/commons/csv/CSVFormat.java b/src/main/java/org/apache/commons/csv/CSVFormat.java index 7e9405ab..f21a64fb 100644 --- a/src/main/java/org/apache/commons/csv/CSVFormat.java +++ b/src/main/java/org/apache/commons/csv/CSVFormat.java @@ -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 Serializable { * */ 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); } /** diff --git a/src/main/java/org/apache/commons/csv/Constants.java b/src/main/java/org/apache/commons/csv/Constants.java index 200b8c23..b48c0db0 100644 --- a/src/main/java/org/apache/commons/csv/Constants.java +++ b/src/main/java/org/apache/commons/csv/Constants.java @@ -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';