Remove commented out code and add TODO for obscure code

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1617070 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benedikt Ritter 2014-08-10 08:54:34 +00:00
parent d69e911aea
commit e729fdff4d
1 changed files with 1 additions and 3 deletions

View File

@ -209,10 +209,9 @@ public final class CSVPrinter implements Flushable, Closeable {
} else {
char c = value.charAt(pos);
// Hmmm, where did this rule come from?
// TODO where did this rule come from?
if (newRecord && (c < '0' || (c > '9' && c < 'A') || (c > 'Z' && c < 'a') || (c > 'z'))) {
quote = true;
// } else if (c == ' ' || c == '\f' || c == '\t') {
} else if (c <= COMMENT) {
// Some other chars at the start of a value caused the parser to fail, so for now
// encapsulate if we start in anything less than '#'. We are being conservative
@ -231,7 +230,6 @@ public final class CSVPrinter implements Flushable, Closeable {
if (!quote) {
pos = end - 1;
c = value.charAt(pos);
// if (c == ' ' || c == '\f' || c == '\t') {
// Some other chars at the end caused the parser to fail, so for now
// encapsulate if we end in anything less than ' '
if (c <= SP) {