commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r427471 - /jakarta/commons/sandbox/csv/trunk/src/java/org/apache/commons/csv/CSVPrinter.java
Date Tue, 01 Aug 2006 06:57:17 GMT
Author: bayard
Date: Mon Jul 31 23:57:17 2006
New Revision: 427471

URL: http://svn.apache.org/viewvc?rev=427471&view=rev
Log:
Adding a minor optimisation as detailed in #SANDBOX-160 by Daniel Gredler. 

Modified:
    jakarta/commons/sandbox/csv/trunk/src/java/org/apache/commons/csv/CSVPrinter.java

Modified: jakarta/commons/sandbox/csv/trunk/src/java/org/apache/commons/csv/CSVPrinter.java
URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/csv/trunk/src/java/org/apache/commons/csv/CSVPrinter.java?rev=427471&r1=427470&r2=427471&view=diff
==============================================================================
--- jakarta/commons/sandbox/csv/trunk/src/java/org/apache/commons/csv/CSVPrinter.java (original)
+++ jakarta/commons/sandbox/csv/trunk/src/java/org/apache/commons/csv/CSVPrinter.java Mon
Jul 31 23:57:17 2006
@@ -214,6 +214,8 @@
         c = value.charAt(i);
         if (c == '"' || c == this.strategy.getDelimiter() || c == '\n' || c == '\r') {
           quote = true;
+          c = value.charAt( value.length() - 1 );
+          break;
         }
       }
       if (c == ' ' || c == '\f' || c == '\t') {



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message