Allowed "rewriting" unresolvedCache elements.

This is used to fix tests. The fix is pretty dirty, but related code is going to be thrown away anyway.
This commit is contained in:
Evgeny Gerashchenko
2013-11-22 22:12:23 +04:00
parent bf0daf4b20
commit fbdc31790b
@@ -226,7 +226,7 @@ public final class JavaClassResolver {
}
private void cacheNegativeValue(@NotNull FqNameUnsafe fqNameUnsafe) {
if (unresolvedCache.contains(fqNameUnsafe) || classDescriptorCache.containsKey(fqNameUnsafe)) {
if (classDescriptorCache.containsKey(fqNameUnsafe)) {
throw new IllegalStateException("rewrite at " + fqNameUnsafe);
}
unresolvedCache.add(fqNameUnsafe);