mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Use generics.
This commit is contained in:
parent
a180ea3e1a
commit
f882d7ca05
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue