From e729fdff4db249f69f21ebdf334c4064ae7b76e5 Mon Sep 17 00:00:00 2001 From: Benedikt Ritter Date: Sun, 10 Aug 2014 08:54:34 +0000 Subject: [PATCH] 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 --- src/main/java/org/apache/commons/csv/CSVPrinter.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/org/apache/commons/csv/CSVPrinter.java b/src/main/java/org/apache/commons/csv/CSVPrinter.java index 9567364b..bdd2a960 100644 --- a/src/main/java/org/apache/commons/csv/CSVPrinter.java +++ b/src/main/java/org/apache/commons/csv/CSVPrinter.java @@ -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) {