Skip to content

Commit 3ea85d4

Browse files
committed
Replace magic char with constant TAB.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1397078 13f79535-47bb-0310-9956-ffa450edef68
1 parent 13092ba commit 3ea85d4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/main/java/org/apache/commons/csv/CSVFormat.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
*/
3030
public class CSVFormat implements Serializable {
3131

32+
private static final char TAB = '\t';
33+
3234
private static final char DOUBLE_QUOTE = '"';
3335

3436
private static final char COMMA = ',';
@@ -113,7 +115,7 @@ public class CSVFormat implements Serializable {
113115
/** Tab-delimited format, with quote; leading and trailing spaces ignored. */
114116
public static final CSVFormat TDF =
115117
PRISTINE
116-
.withDelimiter('\t')
118+
.withDelimiter(TAB)
117119
.withEncapsulator(DOUBLE_QUOTE)
118120
.withSurroundingSpacesIgnored(true)
119121
.withEmptyLinesIgnored(true)
@@ -129,7 +131,7 @@ public class CSVFormat implements Serializable {
129131
*/
130132
public static final CSVFormat MYSQL =
131133
PRISTINE
132-
.withDelimiter('\t')
134+
.withDelimiter(TAB)
133135
.withEscape('\\')
134136
.withLineSeparator("\n");
135137

0 commit comments

Comments
 (0)