Minor, remove read check in WriteThroughScope

Without this, it's difficult to debug errors related to writing to the already
locked scope: if you set a conditional breakpoint in checkMayRead() on a
scope's toString(), its toString() will call getContainingDeclaration(), which
will call checkMayRead() again, resulting in StackOverflowError
This commit is contained in:
Alexander Udalov
2014-04-02 20:08:11 +04:00
parent 96d5a1d0e6
commit 9fbe2c7cbc
@@ -56,8 +56,6 @@ public class WriteThroughScope extends WritableScopeWithImports {
@Override
@NotNull
public DeclarationDescriptor getContainingDeclaration() {
checkMayRead();
return writableWorker.getContainingDeclaration();
}