mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
must not hold PsiLock in readAction in tests
This commit is contained in:
+1
-1
@@ -753,7 +753,7 @@ public class ApplicationImpl extends ComponentManagerImpl implements Application
|
||||
return;
|
||||
}
|
||||
|
||||
LOG.assertTrue(myTestModeFlag || !Thread.holdsLock(PsiLock.LOCK), "Thread must not hold PsiLock while performing readAction");
|
||||
LOG.assertTrue(!Thread.holdsLock(PsiLock.LOCK), "Thread must not hold PsiLock while performing readAction");
|
||||
try {
|
||||
myActionsLock.readLock().acquire();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user