mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 14:15:23 +02:00
Use generics.
This commit is contained in:
parent
b1d9fbf392
commit
79d4ec2886
1 changed files with 3 additions and 3 deletions
|
@ -61,16 +61,16 @@ abstract class PDOMCPPInstance extends PDOMCPPSpecialization implements
|
|||
}
|
||||
|
||||
private static class TemplateArgumentCollector implements IPDOMVisitor {
|
||||
private List args = new ArrayList();
|
||||
private List<IType> args = new ArrayList<IType>();
|
||||
public boolean visit(IPDOMNode node) throws CoreException {
|
||||
if (node instanceof IType)
|
||||
args.add(node);
|
||||
args.add((IType) node);
|
||||
return false;
|
||||
}
|
||||
public void leave(IPDOMNode node) throws CoreException {
|
||||
}
|
||||
public IType[] getTemplateArguments() {
|
||||
return (IType[])args.toArray(new IType[args.size()]);
|
||||
return args.toArray(new IType[args.size()]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue