Minor updates

This commit is contained in:
akshatbahety
2018-06-07 17:58:57 +05:30
parent 7fd3ba4679
commit 84f9c9db32
2 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ public class ClasspathClassLoader extends URLClassLoader {
List<URL> urlList = new ArrayList<>();
for (File f : files) {
addFileURLs(urlList, f.toURI().toURL());
urlList.add(f.toURI().toURL());
}
return urlList.toArray(new URL[urlList.size()]);
}

View File

@ -78,7 +78,7 @@ public class SourceEditorController implements Initializable, SettingsOwner {
private Var<List<File>> auxclasspathFiles = Var.newSimpleVar(Collections.emptyList());
private final Val<ClassLoader> auxclasspathClassLoader = auxclasspathFiles.map(files -> {
try {
new ClasspathClassLoader(files, SourceEditorController.class.getClassLoader());
return new ClasspathClassLoader(files, SourceEditorController.class.getClassLoader());
} catch (IOException e) {
e.printStackTrace();
}
@ -192,7 +192,7 @@ public class SourceEditorController implements Initializable, SettingsOwner {
}
public void setAuxClassPathFiles(String files) {
public void setAuxclasspathFiles(String files) {
List<File> newVal = Arrays.asList(files.split(File.pathSeparator)).stream().map(File::new).collect(Collectors.toList());
auxclasspathFiles.setValue(newVal);
}