@@ -1371,7 +1371,7 @@ private static boolean isLineBreak(final char c) {
13711371 * @return true if {@code c} is a line break character (and not null).
13721372 */
13731373 private static boolean isLineBreak (final Character c ) {
1374- return c != null && isLineBreak (c .charValue ());
1374+ return c != null && isLineBreak (c .charValue ()); // N.B. Explicit (un)boxing is intentional
13751375 }
13761376
13771377 /** Same test as in as {@link String#trim()}. */
@@ -1632,7 +1632,7 @@ public boolean equals(final Object obj) {
16321632 }
16331633
16341634 private void escape (final char c , final Appendable appendable ) throws IOException {
1635- append (escapeCharacter .charValue (), appendable );
1635+ append (escapeCharacter .charValue (), appendable ); // N.B. Explicit (un)boxing is intentional
16361636 append (c , appendable );
16371637 }
16381638
@@ -1769,7 +1769,7 @@ public DuplicateHeaderMode getDuplicateHeaderMode() {
17691769 * @return the escape character, may be {@code 0}
17701770 */
17711771 char getEscapeChar () {
1772- return escapeCharacter != null ? escapeCharacter .charValue () : 0 ;
1772+ return escapeCharacter != null ? escapeCharacter .charValue () : 0 ; // N.B. Explicit (un)boxing is intentional
17731773 }
17741774
17751775 /**
@@ -2081,15 +2081,15 @@ private void print(final InputStream inputStream, final Appendable out, final bo
20812081 }
20822082 final boolean quoteCharacterSet = isQuoteCharacterSet ();
20832083 if (quoteCharacterSet ) {
2084- append (getQuoteCharacter ().charValue (), out );
2084+ append (getQuoteCharacter ().charValue (), out ); // N.B. Explicit (un)boxing is intentional
20852085 }
20862086 // Stream the input to the output without reading or holding the whole value in memory.
20872087 // AppendableOutputStream cannot "close" an Appendable.
20882088 try (OutputStream outputStream = new Base64OutputStream (new AppendableOutputStream <>(out ))) {
20892089 IOUtils .copy (inputStream , outputStream );
20902090 }
20912091 if (quoteCharacterSet ) {
2092- append (getQuoteCharacter ().charValue (), out );
2092+ append (getQuoteCharacter ().charValue (), out ); // N.B. Explicit (un)boxing is intentional
20932093 }
20942094 }
20952095
@@ -2338,7 +2338,7 @@ private void printWithQuotes(final Object object, final CharSequence charSeq, fi
23382338 final int len = charSeq .length ();
23392339 final char [] delim = getDelimiterCharArray ();
23402340 final int delimLength = delim .length ;
2341- final char quoteChar = getQuoteCharacter ().charValue ();
2341+ final char quoteChar = getQuoteCharacter ().charValue (); // N.B. Explicit (un)boxing is intentional
23422342 // If escape char not specified, default to the quote char
23432343 // This avoids having to keep checking whether there is an escape character
23442344 // at the cost of checking against quote twice
@@ -2441,7 +2441,7 @@ private void printWithQuotes(final Reader reader, final Appendable appendable) t
24412441 printWithEscapes (reader , appendable );
24422442 return ;
24432443 }
2444- final char quote = getQuoteCharacter ().charValue ();
2444+ final char quote = getQuoteCharacter ().charValue (); // N.B. Explicit (un)boxing is intentional
24452445 // (1) Append opening quote
24462446 append (quote , appendable );
24472447 // (2) Append Reader contents, doubling quotes
@@ -2522,13 +2522,13 @@ private void validate() throws IllegalArgumentException {
25222522 if (containsLineBreak (delimiter )) {
25232523 throw new IllegalArgumentException ("The delimiter cannot be a line break" );
25242524 }
2525- if (quoteCharacter != null && contains (delimiter , quoteCharacter .charValue ())) {
2525+ if (quoteCharacter != null && contains (delimiter , quoteCharacter .charValue ())) { // N.B. Explicit (un)boxing is intentional
25262526 throw new IllegalArgumentException ("The quoteChar character and the delimiter cannot be the same ('" + quoteCharacter + "')" );
25272527 }
2528- if (escapeCharacter != null && contains (delimiter , escapeCharacter .charValue ())) {
2528+ if (escapeCharacter != null && contains (delimiter , escapeCharacter .charValue ())) { // N.B. Explicit (un)boxing is intentional
25292529 throw new IllegalArgumentException ("The escape character and the delimiter cannot be the same ('" + escapeCharacter + "')" );
25302530 }
2531- if (commentMarker != null && contains (delimiter , commentMarker .charValue ())) {
2531+ if (commentMarker != null && contains (delimiter , commentMarker .charValue ())) { // N.B. Explicit (un)boxing is intentional
25322532 throw new IllegalArgumentException ("The comment start character and the delimiter cannot be the same ('" + commentMarker + "')" );
25332533 }
25342534 if (quoteCharacter != null && quoteCharacter .equals (commentMarker )) {
0 commit comments