Skip to content

Commit 76b0156

Browse files
committed
ScriptFinder: remember the URL for each script
Previously, we threw away the URL references. It's nicer to keep them.
1 parent 0ddf72d commit 76b0156

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/org/scijava/script/ScriptFinder.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333

3434
import java.io.File;
3535
import java.io.IOException;
36-
import java.io.InputStreamReader;
3736
import java.net.MalformedURLException;
3837
import java.net.URL;
3938
import java.util.Collections;
@@ -191,8 +190,7 @@ private int createInfos(final List<ScriptInfo> scripts, final Set<URL> urls,
191190
urls.add(url);
192191

193192
try {
194-
final ScriptInfo info = new ScriptInfo(getContext(), //
195-
path, new InputStreamReader(url.openStream()));
193+
final ScriptInfo info = new ScriptInfo(getContext(), url, path);
196194

197195
info.setMenuPath(menuPath);
198196

0 commit comments

Comments
 (0)