Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
guw authored and tjwatson committed Apr 16, 2024
1 parent 77256a6 commit 192cf17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ Object setContextFinder() {
try {
currentThread.setContextClassLoader(container.getContextFinder());
return previousTCCL;
} catch (SecurityException e) {
} catch (RuntimeException e) {
// move on without setting TCCL (https://github.com/eclipse-equinox/equinox/issues/303)

if (debug.DEBUG_GENERAL) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public Object getService(Bundle bundle, ServiceRegistration<Object> registration
if (cl != null) {
try {
Thread.currentThread().setContextClassLoader(cl);
} catch (SecurityException e) {
} catch (RuntimeException e) {
// move on without setting TCCL (https://github.com/eclipse-equinox/equinox/issues/303)
restoreTccl = false;
}
Expand Down

0 comments on commit 192cf17

Please sign in to comment.