File tree Expand file tree Collapse file tree
src/test/java/org/apache/commons/csv Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments