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 = ' ';