Skip to content

Commit

Permalink
Remove usages of deprecated ThreadDeath (#8487)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored Sep 20, 2023
1 parent febca34 commit 807243e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions core/src/main/java/hudson/model/Run.java
Original file line number Diff line number Diff line change
Expand Up @@ -1896,8 +1896,6 @@ protected final void execute(@NonNull RunExecution job) {

LOGGER.log(FINE, "{0} main build action completed: {1}", new Object[] {this, result});
CheckPoint.MAIN_COMPLETED.report();
} catch (ThreadDeath t) {
throw t;
} catch (AbortException e) { // orderly abortion.
result = Result.FAILURE;
listener.error(e.getMessage());
Expand All @@ -1919,8 +1917,6 @@ protected final void execute(@NonNull RunExecution job) {
// even if the main build fails fatally, try to run post build processing
job.post(Objects.requireNonNull(listener));

} catch (ThreadDeath t) {
throw t;
} catch (Throwable e) {
handleFatalBuildProblem(listener, e);
result = Result.FAILURE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ public static void fireOnChange(Saveable o, XmlFile file) {
for (SaveableListener l : all()) {
try {
l.onChange(o, file);
} catch (ThreadDeath t) {
throw t;
} catch (Throwable t) {
Logger.getLogger(SaveableListener.class.getName()).log(Level.WARNING, null, t);
}
Expand Down

0 comments on commit 807243e

Please sign in to comment.