Skip to content

Commit 41635c4

Browse files
committed
Fix code style warning
1 parent 6ae5784 commit 41635c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

openpdf/src/test/java/com/lowagie/text/pdf/SmallPdfReadTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ public void testEOFHandlingInMappedRandomAccessFile(@TempDir File tempDir) throw
4949
try {
5050
Thread.sleep(100); // give GC time to release mapped file
5151
} catch (InterruptedException e) {
52-
throw new RuntimeException(e);
52+
Thread.currentThread().interrupt(); // best practice: restore interrupt flag
53+
throw new IllegalStateException("Sleep was interrupted", e);
5354
}
5455
}
5556
}

0 commit comments

Comments
 (0)