mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[util] Remove accidental debug code
GitOrigin-RevId: 3a1e8aafa22f2512e8f781a36e4a861c0949b050
This commit is contained in:
committed by
intellij-monorepo-bot
parent
2e91126d1d
commit
ae667215d6
@@ -420,14 +420,13 @@ public final class RecursionManager {
|
||||
private static void setFlag(@NotNull Disposable parentDisposable, boolean toAssert, AtomicBoolean flag) {
|
||||
boolean prev = flag.get();
|
||||
if (toAssert == prev) return;
|
||||
Exception init = new Exception();
|
||||
|
||||
flag.set(toAssert);
|
||||
Disposer.register(parentDisposable, new Disposable() {
|
||||
@Override
|
||||
public void dispose() {
|
||||
if (flag.get() != toAssert) {
|
||||
throw new IllegalStateException("Non-nested assertion flag modifications", init);
|
||||
throw new IllegalStateException("Non-nested assertion flag modifications");
|
||||
}
|
||||
flag.set(prev);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user