[AA] AbstractSymbolTest: fix race
^KT-54311
This commit is contained in:
committed by
Space Team
parent
47c9618b79
commit
7d1ac0ac97
+5
-7
@@ -56,13 +56,11 @@ public class KtPsiBasedSymbolPointer<S : KtSymbol> private constructor(private v
|
||||
|
||||
@TestOnly
|
||||
@Synchronized
|
||||
public fun <T> withDisabledPsiBasedPointers(action: () -> T): T {
|
||||
disablePsiPointer = true
|
||||
return try {
|
||||
action()
|
||||
} finally {
|
||||
disablePsiPointer = false
|
||||
}
|
||||
public fun <T> withDisabledPsiBasedPointers(disable: Boolean, action: () -> T): T = try {
|
||||
disablePsiPointer = disable
|
||||
action()
|
||||
} finally {
|
||||
disablePsiPointer = false
|
||||
}
|
||||
|
||||
@Volatile
|
||||
|
||||
Reference in New Issue
Block a user