v4: Remove unnecessary casts

[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9366]
This commit is contained in:
sharwell 2011-11-17 18:38:51 -08:00
parent 77aeca8174
commit 88b4c7572f
1 changed files with 2 additions and 2 deletions

View File

@ -162,7 +162,7 @@ public class CommonASTAdaptor extends BaseASTAdaptor<CommonAST> {
@Override
public void setParent(CommonAST t, CommonAST parent) {
if ( t!=null ) t.setParent((CommonAST)parent);
if ( t!=null ) t.setParent(parent);
}
@Override
@ -179,7 +179,7 @@ public class CommonASTAdaptor extends BaseASTAdaptor<CommonAST> {
@Override
public void replaceChildren(CommonAST parent, int startChildIndex, int stopChildIndex, CommonAST t) {
if ( parent!=null ) {
Trees.replaceChildren((CommonAST)parent, startChildIndex, stopChildIndex, t);
Trees.replaceChildren(parent, startChildIndex, stopChildIndex, t);
}
}
}