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