Skip to content

Commit e24dc31

Browse files
author
Gary Gregory
committed
Address compiler warnings.
1 parent bf3f34c commit e24dc31

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ public void testFormatThrowsNullPointerException() {
474474
final CSVFormat cSVFormat = CSVFormat.MYSQL;
475475

476476
try {
477-
cSVFormat.format(null);
477+
cSVFormat.format((Object[]) null);
478478
fail("Expecting exception: NullPointerException");
479479
} catch(final NullPointerException e) {
480480
assertEquals(CSVFormat.class.getName(), e.getStackTrace()[0].getClassName());
@@ -639,7 +639,6 @@ public void testSerialization() throws Exception {
639639
@Test
640640
public void testToString() {
641641

642-
final CSVFormat cSVFormat = CSVFormat.POSTGRESQL_TEXT;
643642
final String string = CSVFormat.INFORMIX_UNLOAD.toString();
644643

645644
assertEquals("Delimiter=<|> Escape=<\\> QuoteChar=<\"> RecordSeparator=<\n> EmptyLines:ignored SkipHeaderRecord:false", string);

0 commit comments

Comments
 (0)