Skip to content

Commit 6f500d6

Browse files
committed
Re-introduce DISABLED but as a private constant; only needed for PRISTINE definition
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398559 13f79535-47bb-0310-9956-ffa450edef68
1 parent cbce4da commit 6f500d6

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ public class CSVFormat implements Serializable {
4141

4242
private static final long serialVersionUID = 1L;
4343

44+
/**
45+
* Constant char to use for disabling comments, escapes and encapsulation. The value -2 is used because it
46+
* won't be confused with an EOF signal (-1), and because the Unicode value {@code FFFE} would be encoded as two chars
47+
* (using surrogates) and thus there should never be a collision with a real text char.
48+
*/
49+
private static final char DISABLED = '\ufffe';
50+
4451
private final char delimiter;
4552
private final Character quoteChar;
4653
private final Quote quotePolicy;

0 commit comments

Comments
 (0)