mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-CR-36222 IDEA-196685 IDEA 2018.2 freezes on specific editing of build.gradle file
This commit is contained in:
@@ -347,8 +347,8 @@ public class RecursionManager {
|
||||
}
|
||||
|
||||
@TestOnly
|
||||
public static void assertOnRecursionPrevention(@NotNull Disposable parentDisposable, boolean enableAssert) {
|
||||
ourAssertOnPrevention = enableAssert;
|
||||
public static void assertOnRecursionPrevention(@NotNull Disposable parentDisposable) {
|
||||
ourAssertOnPrevention = true;
|
||||
Disposer.register(parentDisposable, new Disposable() {
|
||||
@Override
|
||||
public void dispose() {
|
||||
@@ -359,7 +359,7 @@ public class RecursionManager {
|
||||
}
|
||||
|
||||
@TestOnly
|
||||
public static void assertOnRecursionPrevention(@NotNull Disposable parentDisposable) {
|
||||
assertOnRecursionPrevention(parentDisposable, true);
|
||||
public static void disableAssertOnRecursionPrevention() {
|
||||
ourAssertOnPrevention = false;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -390,7 +390,7 @@ class GoodCodeRed {
|
||||
}
|
||||
|
||||
void 'test recursive generics'() {
|
||||
RecursionManager.assertOnRecursionPrevention(myFixture.testRootDisposable, false)
|
||||
RecursionManager.disableAssertOnRecursionPrevention()
|
||||
testHighlighting '''
|
||||
import groovy.transform.CompileStatic
|
||||
|
||||
|
||||
Reference in New Issue
Block a user