mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[svn] Explicitly assert not null
This commit is contained in:
+2
-1
@@ -43,6 +43,7 @@ import com.intellij.openapi.vfs.LocalFileSystem;
|
||||
import com.intellij.openapi.vfs.VfsUtil;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import com.intellij.util.Consumer;
|
||||
import com.intellij.util.ObjectUtils;
|
||||
import com.intellij.util.SmartList;
|
||||
import com.intellij.util.containers.Convertor;
|
||||
import com.intellij.util.containers.MultiMap;
|
||||
@@ -492,7 +493,7 @@ public class MergeFromTheirsResolver {
|
||||
|
||||
@NotNull
|
||||
private static FilePath rebasePath(@NotNull FilePath oldBase, @NotNull FilePath newBase, @NotNull FilePath path) {
|
||||
String relativePath = FileUtil.getRelativePath(oldBase.getPath(), path.getPath(), '/');
|
||||
String relativePath = ObjectUtils.assertNotNull(FileUtil.getRelativePath(oldBase.getPath(), path.getPath(), '/'));
|
||||
return VcsUtil.getFilePath(newBase.getPath() + "/" + relativePath, path.isDirectory());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user