diff --git a/src/main/java/org/apache/commons/csv/CSVPrinter.java b/src/main/java/org/apache/commons/csv/CSVPrinter.java index ba3dac2a..b1590df4 100644 --- a/src/main/java/org/apache/commons/csv/CSVPrinter.java +++ b/src/main/java/org/apache/commons/csv/CSVPrinter.java @@ -136,7 +136,7 @@ public class CSVPrinter { private void print(final CharSequence value, final int offset, final int len) throws IOException { if (format.isQuoting()) { - printAndEncapsulate(value, offset, len); + printAndQuote(value, offset, len); } else if (format.isEscaping()) { printAndEscape(value, offset, len); } else { @@ -191,7 +191,7 @@ public class CSVPrinter { } } - void printAndEncapsulate(final CharSequence value, final int offset, final int len) throws IOException { + void printAndQuote(final CharSequence value, final int offset, final int len) throws IOException { final boolean first = newLine; // is this the first value on this line? boolean quote = false; int start = offset;