Skip to content

Commit 17139b8

Browse files
committed
Better lvar names.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398015 13f79535-47bb-0310-9956-ffa450edef68
1 parent 53f15f4 commit 17139b8

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)