@@ -200,8 +200,8 @@ void printAndEncapsulate(final CharSequence value, final int offset, final int l
200200
201201 printDelimiter ();
202202
203- final char delim = format .getDelimiter ();
204- final char encapsulator = format .getQuoteChar ();
203+ final char delimChar = format .getDelimiter ();
204+ final char quoteChar = format .getQuoteChar ();
205205
206206 if (len <= 0 ) {
207207 // always quote an empty token that is the first
@@ -226,7 +226,7 @@ void printAndEncapsulate(final CharSequence value, final int offset, final int l
226226 } else {
227227 while (pos < end ) {
228228 c = value .charAt (pos );
229- if (c == LF || c == CR || c == encapsulator || c == delim ) {
229+ if (c == LF || c == CR || c == quoteChar || c == delimChar ) {
230230 quote = true ;
231231 break ;
232232 }
@@ -253,13 +253,13 @@ void printAndEncapsulate(final CharSequence value, final int offset, final int l
253253 }
254254
255255 // we hit something that needed encapsulation
256- out .append (encapsulator );
256+ out .append (quoteChar );
257257
258258 // Pick up where we left off: pos should be positioned on the first character that caused
259259 // the need for encapsulation.
260260 while (pos < end ) {
261261 final char c = value .charAt (pos );
262- if (c == encapsulator ) {
262+ if (c == quoteChar ) {
263263 // write out the chunk up until this point
264264
265265 // add 1 to the length to write out the encapsulator also
@@ -273,7 +273,7 @@ void printAndEncapsulate(final CharSequence value, final int offset, final int l
273273
274274 // write the last segment
275275 out .append (value , start , pos );
276- out .append (encapsulator );
276+ out .append (quoteChar );
277277 }
278278
279279 /**
0 commit comments