Fixed overly strong type cast, issue #1555.
This commit is contained in:
parent
4d526a44a7
commit
782da01103
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue