mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
special AlreadyDisposedException must be used here instead of generic IllegalStateException
GitOrigin-RevId: 6a8f6071465839f5a39ee2c79d4451e3016633c1
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ae253ef4d5
commit
28781682ba
@@ -35,6 +35,7 @@ import com.intellij.openapi.wm.WindowManager;
|
||||
import com.intellij.openapi.wm.impl.FrameTitleBuilder;
|
||||
import com.intellij.project.ProjectStoreOwner;
|
||||
import com.intellij.psi.impl.DebugUtil;
|
||||
import com.intellij.serviceContainer.AlreadyDisposedException;
|
||||
import com.intellij.serviceContainer.ComponentManagerImpl;
|
||||
import com.intellij.util.PathUtil;
|
||||
import com.intellij.util.TimedReference;
|
||||
@@ -375,7 +376,7 @@ public class ProjectImpl extends ComponentManagerImpl implements ProjectEx, Proj
|
||||
@ApiStatus.Internal
|
||||
public final @NotNull Disposable getEarlyDisposable() {
|
||||
if (isDisposed()) {
|
||||
throw new IllegalStateException(this + " is disposed already");
|
||||
throw new AlreadyDisposedException(this + " is disposed already");
|
||||
}
|
||||
|
||||
// maybe null only if disposed, but this condition is checked above
|
||||
|
||||
Reference in New Issue
Block a user