forked from jasder/antlr
v4: Remove unnecessary casts
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9366]
This commit is contained in:
parent
77aeca8174
commit
88b4c7572f
|
@ -162,7 +162,7 @@ public class CommonASTAdaptor extends BaseASTAdaptor<CommonAST> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setParent(CommonAST t, CommonAST parent) {
|
public void setParent(CommonAST t, CommonAST parent) {
|
||||||
if ( t!=null ) t.setParent((CommonAST)parent);
|
if ( t!=null ) t.setParent(parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -179,7 +179,7 @@ public class CommonASTAdaptor extends BaseASTAdaptor<CommonAST> {
|
||||||
@Override
|
@Override
|
||||||
public void replaceChildren(CommonAST parent, int startChildIndex, int stopChildIndex, CommonAST t) {
|
public void replaceChildren(CommonAST parent, int startChildIndex, int stopChildIndex, CommonAST t) {
|
||||||
if ( parent!=null ) {
|
if ( parent!=null ) {
|
||||||
Trees.replaceChildren((CommonAST)parent, startChildIndex, stopChildIndex, t);
|
Trees.replaceChildren(parent, startChildIndex, stopChildIndex, t);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue