Fixed overly strong type cast, issue #1555.

This commit is contained in:
Andrei Selkin 2015-08-06 18:50:25 +03:00 committed by Roman Ivanov
parent 4d526a44a7
commit 782da01103
1 changed files with 2 additions and 2 deletions

View File

@ -50,8 +50,8 @@ public class ArrayInitHandler extends BlockParentHandler {
return new IndentLevel(getLineStart(parentAST));
}
else {
// at this point getParent() is instance of ArrayInitHandler
return ((ArrayInitHandler) getParent()).getChildrenExpectedLevel();
// at this point getParent() is instance of BlockParentHandler
return ((BlockParentHandler) getParent()).getChildrenExpectedLevel();
}
}