mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-11 11:05:24 +02:00
Use generics.
This commit is contained in:
parent
c847fa362e
commit
b1d9fbf392
1 changed files with 17 additions and 18 deletions
|
@ -91,7 +91,7 @@ public class CPPASTBaseSpecifier extends CPPASTNode implements
|
|||
|
||||
public IBinding[] findBindings(IASTName n, boolean isPrefix) {
|
||||
IBinding[] bindings = CPPSemantics.findBindingsForContentAssist(n, isPrefix);
|
||||
List filtered = new ArrayList();
|
||||
List<IBinding> filtered = new ArrayList<IBinding>();
|
||||
|
||||
ICPPClassType classType = null;
|
||||
if (getParent() instanceof CPPASTCompositeTypeSpecifier) {
|
||||
|
@ -102,7 +102,6 @@ public class CPPASTBaseSpecifier extends CPPASTNode implements
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
for (int i = 0; i < bindings.length; i++) {
|
||||
if (bindings[i] instanceof ICPPClassType) {
|
||||
ICPPClassType base = (ICPPClassType) bindings[i];
|
||||
|
@ -117,6 +116,6 @@ public class CPPASTBaseSpecifier extends CPPASTNode implements
|
|||
}
|
||||
}
|
||||
|
||||
return (IBinding[]) filtered.toArray(new IBinding[filtered.size()]);
|
||||
return filtered.toArray(new IBinding[filtered.size()]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue