Skip to content

Commit e1dc4f8

Browse files
committed
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.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398276 13f79535-47bb-0310-9956-ffa450edef68
1 parent 350d34d commit e1dc4f8

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

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

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -316,27 +316,6 @@ void printAndQuote(Object object, final CharSequence value, final int offset, fi
316316
out.append(quoteChar);
317317
}
318318

319-
/**
320-
* Prints the string as the next value on the line. The value will be escaped or encapsulated as needed if
321-
* checkForEscape==true
322-
*
323-
* @param object
324-
* value to output.
325-
* @throws IOException
326-
* If an I/O error occurs
327-
*/
328-
public void print(Object object, final boolean checkForEscape) throws IOException {
329-
// null values are considered empty
330-
final String value = object == null ? EMPTY : object.toString();
331-
if (!checkForEscape) {
332-
// write directly from string
333-
printDelimiter();
334-
out.append(value);
335-
} else {
336-
print(object, value, 0, value.length());
337-
}
338-
}
339-
340319
/**
341320
* Prints the string as the next value on the line. The value will be escaped or encapsulated as needed.
342321
*

0 commit comments

Comments
 (0)