Skip to content

Commit 536c18d

Browse files
committed
Use Character cache.
1 parent 895188c commit 536c18d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/java/org/apache/commons/csv/CSVFormatTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ public void testEscapeSameAsCommentStartThrowsExceptionForWrapperType() {
538538
// Cannot assume that callers won't use different Character objects
539539
assertThrows(
540540
IllegalArgumentException.class,
541-
() -> CSVFormat.DEFAULT.withEscape(new Character('!')).withCommentMarker(new Character('!')));
541+
() -> CSVFormat.DEFAULT.withEscape(Character.valueOf('!')).withCommentMarker(new Character('!')));
542542
}
543543

544544
@Test
@@ -674,7 +674,7 @@ public void testQuoteCharSameAsCommentStartThrowsExceptionForWrapperType() {
674674
// Cannot assume that callers won't use different Character objects
675675
assertThrows(
676676
IllegalArgumentException.class,
677-
() -> CSVFormat.DEFAULT.withQuote(new Character('!')).withCommentMarker('!'));
677+
() -> CSVFormat.DEFAULT.withQuote(Character.valueOf('!')).withCommentMarker('!'));
678678
}
679679

680680
@Test

0 commit comments

Comments
 (0)