Replace IoPackage legacy facade with corresponding package parts.

This commit is contained in:
Ilya Gorbunov
2015-10-01 22:42:14 +03:00
parent 90e5ee8a7e
commit fa491c8f1f
5 changed files with 11 additions and 11 deletions
@@ -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()) {