Skip to content

Commit e729fdf

Browse files
committed
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
1 parent d69e911 commit e729fdf

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,9 @@ private void printAndQuote(final Object object, final CharSequence value,
209209
} else {
210210
char c = value.charAt(pos);
211211

212-
// Hmmm, where did this rule come from?
212+
// TODO where did this rule come from?
213213
if (newRecord && (c < '0' || (c > '9' && c < 'A') || (c > 'Z' && c < 'a') || (c > 'z'))) {
214214
quote = true;
215-
// } else if (c == ' ' || c == '\f' || c == '\t') {
216215
} else if (c <= COMMENT) {
217216
// Some other chars at the start of a value caused the parser to fail, so for now
218217
// encapsulate if we start in anything less than '#'. We are being conservative
@@ -231,7 +230,6 @@ private void printAndQuote(final Object object, final CharSequence value,
231230
if (!quote) {
232231
pos = end - 1;
233232
c = value.charAt(pos);
234-
// if (c == ' ' || c == '\f' || c == '\t') {
235233
// Some other chars at the end caused the parser to fail, so for now
236234
// encapsulate if we end in anything less than ' '
237235
if (c <= SP) {

0 commit comments

Comments
 (0)