We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b8be13 commit 4f40d01Copy full SHA for 4f40d01
src/main/java/org/scijava/script/DefaultScriptService.java
@@ -226,14 +226,8 @@ public void initialize() {
226
super.initialize();
227
228
// add scripts to the module index... only when needed!
229
- moduleService.getIndex().addLater(new LazyObjects<ScriptInfo>() {
230
-
231
- @Override
232
- public Collection<ScriptInfo> get() {
233
- return scripts().values();
234
- }
235
236
- });
+ final LazyObjects<ScriptInfo> lazyScripts = () -> scripts().values();
+ moduleService.getIndex().addLater(lazyScripts);
237
}
238
239
// -- Helper methods - lazy initialization --
0 commit comments