Skip to content

Commit bcfe0a4

Browse files
author
James Judd
committed
Fix types
1 parent 45f054d commit bcfe0a4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

scala/src/com/google/idea/blaze/scala/sync/BlazeScalaSyncPlugin.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
import com.intellij.openapi.roots.OrderRootType;
5151
import com.intellij.openapi.roots.ui.configuration.libraryEditor.ExistingLibraryEditor;
5252
import com.intellij.openapi.vfs.VirtualFile;
53-
import java.io.File;
53+
import java.nio.file.Path;
54+
import java.nio.file.Paths;
5455
import java.util.Collections;
5556
import java.util.LinkedList;
5657
import java.util.regex.Matcher;
@@ -205,7 +206,7 @@ public void updateProjectStructure(
205206

206207
// Create the Scala SDK from the SDK deps we just found
207208
LinkedList<VirtualFile> libraryClasses = new LinkedList<VirtualFile>();
208-
LinkedList<File> compilerClasspath = new LinkedList<File>();
209+
LinkedList<Path> compilerClasspath = new LinkedList<Path>();
209210
for (ScalaSdkJar currentClass : sdkClasses) {
210211
if (currentClass.highestVersionLibrary != null) {
211212
VirtualFile[] currentClassVirtualFiles =
@@ -222,7 +223,7 @@ public void updateProjectStructure(
222223
if (path != null && path.endsWith(suffix)) {
223224
path = path.substring(0, path.length() - suffix.length());
224225
}
225-
compilerClasspath.add(new File(path));
226+
compilerClasspath.add(Paths.get(path));
226227
}
227228
}
228229
}
@@ -232,7 +233,7 @@ public void updateProjectStructure(
232233
final String scalaVersion = highestScalaLibraryVersion;
233234
ScalaLibraryProperties properties = ScalaLibraryProperties.apply(
234235
Some.apply(scalaVersion),
235-
CollectionConverters.asScala(compilerClasspath).toList(),
236+
CollectionConverters.asScala(compilerClasspath).toSeq(),
236237
Seq$.MODULE$.empty()
237238
);
238239

0 commit comments

Comments
 (0)