From 0e35052508e063fcba35dd0e018db2715aeae08e Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Tue, 20 Nov 2012 23:11:09 +0000 Subject: [PATCH] Correct name of character: it's not an escape, it's a backslash git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1411918 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 019e7678..1c6fda27 100644 --- a/src/main/java/org/apache/commons/csv/CSVFormat.java +++ b/src/main/java/org/apache/commons/csv/CSVFormat.java @@ -21,7 +21,7 @@ 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.ESCAPE; +import static org.apache.commons.csv.Constants.BACKSLASH; import static org.apache.commons.csv.Constants.LF; import static org.apache.commons.csv.Constants.TAB; @@ -119,7 +119,7 @@ public class CSVFormat implements Serializable { newBuilder() .withDelimiter(TAB) .withQuoteChar(null) - .withEscape(ESCAPE) + .withEscape(BACKSLASH) .withIgnoreEmptyLines(false) .withRecordSeparator(LF) .build(); diff --git a/src/main/java/org/apache/commons/csv/Constants.java b/src/main/java/org/apache/commons/csv/Constants.java index 524c5230..200b8c23 100644 --- a/src/main/java/org/apache/commons/csv/Constants.java +++ b/src/main/java/org/apache/commons/csv/Constants.java @@ -34,7 +34,7 @@ final class Constants { static final char CR = '\r'; static final char DOUBLE_QUOTE = '"'; - static final char ESCAPE = '\\'; + static final char BACKSLASH = '\\'; static final char FF = '\f'; static final char LF = '\n'; static final char SP = ' ';