Skip to content

Commit

Permalink
PDFBOX-5660: Sonar fix
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1913625 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
THausherr committed Nov 6, 2023
1 parent aa1812d commit ef9e9fd
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNotNull;

import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
Expand Down Expand Up @@ -189,7 +190,7 @@ void testPDFBoxRepeatableSubcommandAddFileNameOutfile(@TempDir Path tempDir) thr
System.err.println(
"Error creating temporary test file in " + this.getClass().getSimpleName());
}
assertFalse(path == null);
assertNotNull(path);

PDFBox.main(new String[] { "export:text", "-i", testfile1, "-encoding", "UTF-8",
"-addFileName", "-o", path.toString(), //
Expand Down Expand Up @@ -226,7 +227,7 @@ void testPDFBoxRepeatableSubcommandAddFileNameOutfileAppend(@TempDir Path tempDi
System.err.println(
"Error creating temporary test file in " + this.getClass().getSimpleName());
}
assertFalse(path == null);
assertNotNull(path);

PDFBox.main(new String[] { "export:text", "-i", testfile1, "-encoding", "UTF-8",
"-addFileName", "-o", path.toString(), //
Expand Down

0 comments on commit ef9e9fd

Please sign in to comment.