Skip to content

Commit 1e40b54

Browse files
Remove ThreadDeath usage, it is deprecated and scheduled for removal.
1 parent 57e0e29 commit 1e40b54

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

openpdf-html/src/main/java/org/openpdf/swing/BasicPanel.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,6 @@ protected void doRender(RenderingContext c, Layer root) {
142142
if (Configuration.isTrue("xr.incremental.repaint.print-timing", false)) {
143143
Uu.p("repaint took ms: " + (after - start));
144144
}
145-
} catch (ThreadDeath t) {
146-
throw t;
147145
} catch (Error | RuntimeException t) {
148146
if (hasDocumentListeners()) {
149147
fireOnRenderException(t);

openpdf-html/src/main/java/org/openpdf/swing/RootPanel.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,6 @@ public void run() {
351351
}
352352
});
353353
}*/
354-
} catch (ThreadDeath t) {
355-
throw t;
356354
} catch (Error | RuntimeException t) {
357355
if (hasDocumentListeners()) {
358356
fireOnLayoutException(t);

0 commit comments

Comments
 (0)