5050import com .intellij .openapi .roots .OrderRootType ;
5151import com .intellij .openapi .roots .ui .configuration .libraryEditor .ExistingLibraryEditor ;
5252import com .intellij .openapi .vfs .VirtualFile ;
53- import java .io .File ;
53+ import java .nio .file .Path ;
54+ import java .nio .file .Paths ;
5455import java .util .Collections ;
5556import java .util .LinkedList ;
5657import 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