commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brentwor...@apache.org
Subject svn commit: r1624273 - /commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVRecord.java
Date Thu, 11 Sep 2014 12:56:17 GMT
Author: brentworden
Date: Thu Sep 11 12:56:17 2014
New Revision: 1624273

URL: http://svn.apache.org/r1624273
Log:
revert tostring implementation

Modified:
    commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVRecord.java

Modified: commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVRecord.java
URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVRecord.java?rev=1624273&r1=1624272&r2=1624273&view=diff
==============================================================================
--- commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVRecord.java (original)
+++ commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVRecord.java Thu Sep 11
12:56:17 2014
@@ -236,12 +236,9 @@ public final class CSVRecord implements 
      */
     @Override
     public String toString() {
-        StringBuilder sb = new StringBuilder();
-        sb.append("CSVRecord [comment=").append(comment);
-        sb.append(", mapping=").append(mapping);
-        sb.append(", recordNumber=").append(recordNumber);
-        sb.append(", values=").append(Arrays.toString(values)).append(']');
-        return sb.toString();
+        return "CSVRecord [comment=" + comment + ", mapping=" + mapping +
+                ", recordNumber=" + recordNumber + ", values=" +
+                Arrays.toString(values) + "]";
     }
 
     String[] values() {



Mime
View raw message