mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
shelf: cleanup - remove deprecated API usages
GitOrigin-RevId: f7a0f3ba91b1009beb5799e1faeb5cce30252592
This commit is contained in:
committed by
intellij-monorepo-bot
parent
0c901a37ff
commit
6fb3b95cea
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user