diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/CIndex.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/CIndex.java index c3dde20b6f0..e5abb567a16 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/CIndex.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/CIndex.java @@ -160,7 +160,7 @@ public class CIndex implements IIndex { @Override public IIndexName[] findNames(IBinding binding, int flags) throws CoreException { - LinkedList result= new LinkedList(); + ArrayList result= new ArrayList(); if (binding instanceof ICPPUsingDeclaration) { IBinding[] bindings= ((ICPPUsingDeclaration) binding).getDelegates(); if (bindings == null || bindings.length == 0) { @@ -180,7 +180,7 @@ public class CIndex implements IIndex { // variants in one or more index fragments, we need to filter out duplicate names. // See bug 192352. // Read only fragments can be superseded by what the indexer writes into - // a writable fragment. Therefore names from a read-only fragement are + // a writable fragment. Therefore names from a read-only fragment are // ignored if there is a match in a writable fragment. HashSet encounteredNames = new HashSet(); for (IIndexFragment fragment : fFragments) {