1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 14:15:23 +02:00

Use generics.

This commit is contained in:
Sergey Prigogin 2008-01-21 01:50:12 +00:00
parent b1d9fbf392
commit 79d4ec2886

View file

@ -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()]);
}
}