1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Use generics.

This commit is contained in:
Sergey Prigogin 2008-03-25 06:21:54 +00:00
parent a180ea3e1a
commit f882d7ca05

View file

@ -54,7 +54,7 @@ abstract class PDOMCPPBinding extends PDOMBinding implements ICPPBinding {
}
final public char[][] getQualifiedNameCharArray() throws DOMException {
List result = new ArrayList();
List<char[]> result = new ArrayList<char[]>();
try {
PDOMNode node = this;
while (node != null) {
@ -63,9 +63,9 @@ abstract class PDOMCPPBinding extends PDOMBinding implements ICPPBinding {
}
node = node.getParentNode();
}
return (char[][]) result.toArray(new char[result.size()][]);
} catch(CoreException ce) {
CCorePlugin.log(ce);
return result.toArray(new char[result.size()][]);
} catch (CoreException e) {
CCorePlugin.log(e);
return null;
}
}