Skip to content

Commit 5c9b878

Browse files
committed
PRISTINE can now be private as we have ctor which allows delimiter to be specified
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398560 13f79535-47bb-0310-9956-ffa450edef68
1 parent 6f500d6 commit 5c9b878

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public class CSVFormat implements Serializable {
6161
/**
6262
* Starting format; used for creating other formats.
6363
*/
64-
static final CSVFormat PRISTINE = new CSVFormat(COMMA, null, null, null, null, false, false, null, null);
64+
private static final CSVFormat PRISTINE = new CSVFormat(COMMA, null, null, null, null, false, false, null, null);
6565

6666
/**
6767
* Standard comma separated format, as for {@link #RFC4180} but allowing blank lines.

src/test/java/org/apache/commons/csv/CSVFileParserTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public void testCSVFile() throws Exception {
8989
assertTrue(testName+" require 1 param", split.length >= 1);
9090
// first line starts with csv data file name
9191
final BufferedReader csvFile = new BufferedReader(new FileReader(new File(BASE, split[0])));
92-
CSVFormat fmt = CSVFormat.PRISTINE.withDelimiter(',').withQuoteChar('"');
92+
CSVFormat fmt = new CSVFormat(',').withQuoteChar('"');
9393
boolean checkComments = false;
9494
for(int i=1; i < split.length; i++) {
9595
final String option = split[i];

src/test/java/org/apache/commons/csv/CSVParserTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ public void testBackslashEscaping() throws IOException {
312312
};
313313

314314

315-
final CSVFormat format = CSVFormat.PRISTINE.withDelimiter(',').withQuoteChar('\'').withEscape('/')
315+
final CSVFormat format = new CSVFormat(',').withQuoteChar('\'').withEscape('/')
316316
.withIgnoreEmptyLines(true).withLineSeparator(CRLF);
317317

318318
final CSVParser parser = new CSVParser(code, format);
@@ -342,7 +342,7 @@ public void testBackslashEscaping2() throws IOException {
342342
};
343343

344344

345-
final CSVFormat format = CSVFormat.PRISTINE.withDelimiter(',').withEscape('/')
345+
final CSVFormat format = new CSVFormat(',').withEscape('/')
346346
.withIgnoreEmptyLines(true).withLineSeparator(CRLF);
347347

348348
final CSVParser parser = new CSVParser(code, format);

0 commit comments

Comments
 (0)