Skip to content

Commit 4efb5ae

Browse files
committed
Replace magic char with constant COMMA.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1397074 13f79535-47bb-0310-9956-ffa450edef68
1 parent 2ea171f commit 4efb5ae

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

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

Lines changed: 5 additions & 3 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 COMMA = ',';
33+
3234
private static final long serialVersionUID = 1L;
3335

3436
/** According to RFC 4180, line breaks are delimited by CRLF */
@@ -70,7 +72,7 @@ public class CSVFormat implements Serializable {
7072
*/
7173
public static final CSVFormat DEFAULT =
7274
PRISTINE.
73-
withDelimiter(',')
75+
withDelimiter(COMMA)
7476
.withEncapsulator('"')
7577
.withEmptyLinesIgnored(true)
7678
.withLineSeparator(CRLF);
@@ -86,7 +88,7 @@ public class CSVFormat implements Serializable {
8688
*/
8789
public static final CSVFormat RFC4180 =
8890
PRISTINE.
89-
withDelimiter(',')
91+
withDelimiter(COMMA)
9092
.withEncapsulator('"')
9193
.withLineSeparator(CRLF);
9294

@@ -102,7 +104,7 @@ public class CSVFormat implements Serializable {
102104
*/
103105
public static final CSVFormat EXCEL =
104106
PRISTINE
105-
.withDelimiter(',')
107+
.withDelimiter(COMMA)
106108
.withEncapsulator('"')
107109
.withLineSeparator(CRLF);
108110

0 commit comments

Comments
 (0)