shelf: cleanup - remove deprecated API usages

GitOrigin-RevId: f7a0f3ba91b1009beb5799e1faeb5cce30252592
This commit is contained in:
Nadya Zabrodina
2019-06-09 10:07:19 +03:00
committed by intellij-monorepo-bot
parent 0c901a37ff
commit 6fb3b95cea
2 changed files with 3 additions and 3 deletions
@@ -89,7 +89,7 @@ public class ShelvedChange {
public Change getChange(@NotNull Project project) {
// todo unify with
if (myChange == null) {
File baseDir = new File(project.getBaseDir().getPath());
File baseDir = new File(Objects.requireNonNull(project.getBasePath()));
File file = getAbsolutePath(baseDir, myBeforePath);
FilePath beforePath = VcsUtil.getFilePath(file, false);
@@ -75,8 +75,8 @@ class ShelvedWrapper {
@Nullable
public VirtualFile getBeforeVFUnderProject(@NotNull final Project project) {
if (getBeforePath() == null || project.getBaseDir() == null) return null;
final File baseDir = new File(project.getBaseDir().getPath());
if (getBeforePath() == null || project.getBasePath() == null) return null;
final File baseDir = new File(project.getBasePath());
final File file = new File(baseDir, getBeforePath());
return LocalFileSystem.getInstance().refreshAndFindFileByIoFile(file);
}