This commit is contained in:
Alexey Kudravtsev
2012-03-22 14:09:57 +04:00
parent 5af0d0d828
commit ea22841218
@@ -96,7 +96,8 @@ public class JavaResolveCache {
SoftReference<PsiType> ref = new SoftReference<PsiType>(type);
Reference<PsiType> storedRef = ConcurrencyUtil.cacheOrGet(myCalculatedTypes, expr, ref);
type = storedRef.get();
PsiType stored = storedRef.get();
type = stored == null ? type : stored;
}
if (!type.isValid()) {