commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1398276 - /commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVPrinter.java
Date Mon, 15 Oct 2012 13:12:22 GMT
Author: ggregory
Date: Mon Oct 15 13:12:21 2012
New Revision: 1398276

URL: http://svn.apache.org/viewvc?rev=1398276&view=rev
Log:
Remove method org.apache.commons.csv.CSVPrinter.print(Object, boolean), it should not have
been public in the first place, the format is the API to specify this kind of option.

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

Modified: commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVPrinter.java
URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVPrinter.java?rev=1398276&r1=1398275&r2=1398276&view=diff
==============================================================================
--- commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVPrinter.java (original)
+++ commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVPrinter.java Mon Oct
15 13:12:21 2012
@@ -317,27 +317,6 @@ public class CSVPrinter {
     }
 
     /**
-     * Prints the string as the next value on the line. The value will be escaped or encapsulated
as needed if
-     * checkForEscape==true
-     * 
-     * @param object
-     *            value to output.
-     * @throws IOException
-     *             If an I/O error occurs
-     */
-    public void print(Object object, final boolean checkForEscape) throws IOException {
-        // null values are considered empty
-        final String value = object == null ? EMPTY : object.toString();
-        if (!checkForEscape) {
-            // write directly from string
-            printDelimiter();
-            out.append(value);
-        } else {
-            print(object, value, 0, value.length());
-        }
-    }
-
-    /**
      * Prints the string as the next value on the line. The value will be escaped or encapsulated
as needed.
      * 
      * @param value



Mime
View raw message