Replace IoPackage legacy facade with corresponding package parts.
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
package org.jetbrains.kotlin.cli.common.messages;
|
||||
|
||||
import kotlin.io.IoPackage;
|
||||
import kotlin.io.FilesKt;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
@@ -49,7 +49,7 @@ public interface MessageRenderer {
|
||||
@Override
|
||||
protected String getPath(@NotNull CompilerMessageLocation location) {
|
||||
String path = location.getPath();
|
||||
return cwd == null || path == null ? path : IoPackage.relativePath(cwd, new File(path));
|
||||
return cwd == null || path == null ? path : FilesKt.relativePath(cwd, new File(path));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ import com.intellij.openapi.vfs.VirtualFileSystem;
|
||||
import com.intellij.psi.PsiFile;
|
||||
import com.intellij.psi.PsiManager;
|
||||
import kotlin.Unit;
|
||||
import kotlin.io.IoPackage;
|
||||
import kotlin.io.FilesKt;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
@@ -162,7 +162,7 @@ public class CompileEnvironmentUtil {
|
||||
continue;
|
||||
}
|
||||
|
||||
IoPackage.recurse(new File(sourceRootPath), new Function1<File, Unit>() {
|
||||
FilesKt.recurse(new File(sourceRootPath), new Function1<File, Unit>() {
|
||||
@Override
|
||||
public Unit invoke(File file) {
|
||||
if (file.isFile()) {
|
||||
|
||||
Reference in New Issue
Block a user