Don't use deprecated code

This commit is contained in:
Gary Gregory 2023-11-12 12:56:54 -05:00
parent 394e65c05f
commit a1b4a4d668

View File

@ -1516,7 +1516,7 @@ public class CSVPrinterTest {
public void testPrintRecordsWithEmptyVector() throws IOException {
final PrintStream out = System.out;
try {
System.setOut(new PrintStream(NullOutputStream.NULL_OUTPUT_STREAM));
System.setOut(new PrintStream(NullOutputStream.INSTANCE));
try (CSVPrinter csvPrinter = CSVFormat.POSTGRESQL_TEXT.printer()) {
final Vector<CSVFormatTest.EmptyEnum> vector = new Vector<>();
final int expectedCapacity = 23;