Skip to content

Commit

Permalink
IJ1Helper: use lambda for succinctness
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrueden committed Jun 11, 2024
1 parent bffacdd commit 915bec8
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/main/java/net/imagej/legacy/IJ1Helper.java
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,8 @@ public void initialize() {
ij1.exitWhenQuitting(true);

// make sure that the Event Dispatch Thread's class loader is set
SwingUtilities.invokeLater(new Runnable() {

@Override
public void run() {
Thread.currentThread().setContextClassLoader(IJ.getClassLoader());
}
});
SwingUtilities.invokeLater(() ->
Thread.currentThread().setContextClassLoader(IJ.getClassLoader()));

final LegacyImageMap imageMap = legacyService.getImageMap();
for (int i = 1; i <= WindowManager.getImageCount(); i++) {
Expand Down

0 comments on commit 915bec8

Please sign in to comment.