We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bffacdd commit 915bec8Copy full SHA for 915bec8
src/main/java/net/imagej/legacy/IJ1Helper.java
@@ -184,13 +184,8 @@ public void initialize() {
184
ij1.exitWhenQuitting(true);
185
186
// make sure that the Event Dispatch Thread's class loader is set
187
- SwingUtilities.invokeLater(new Runnable() {
188
-
189
- @Override
190
- public void run() {
191
- Thread.currentThread().setContextClassLoader(IJ.getClassLoader());
192
- }
193
- });
+ SwingUtilities.invokeLater(() ->
+ Thread.currentThread().setContextClassLoader(IJ.getClassLoader()));
194
195
final LegacyImageMap imageMap = legacyService.getImageMap();
196
for (int i = 1; i <= WindowManager.getImageCount(); i++) {
0 commit comments