We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ae5784 commit 41635c4Copy full SHA for 41635c4
openpdf/src/test/java/com/lowagie/text/pdf/SmallPdfReadTest.java
@@ -49,7 +49,8 @@ public void testEOFHandlingInMappedRandomAccessFile(@TempDir File tempDir) throw
49
try {
50
Thread.sleep(100); // give GC time to release mapped file
51
} catch (InterruptedException e) {
52
- throw new RuntimeException(e);
+ Thread.currentThread().interrupt(); // best practice: restore interrupt flag
53
+ throw new IllegalStateException("Sleep was interrupted", e);
54
}
55
56
0 commit comments