diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/LocationMap.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/LocationMap.java index f3cd240af81..3c92cc5772f 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/LocationMap.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/LocationMap.java @@ -11,9 +11,9 @@ *******************************************************************************/ package org.eclipse.cdt.internal.core.parser.scanner; +import java.util.ArrayDeque; import java.util.ArrayList; import java.util.IdentityHashMap; -import java.util.LinkedList; import java.util.List; import org.eclipse.cdt.core.dom.ast.IASTComment; @@ -668,7 +668,7 @@ public class LocationMap implements ILocationResolver { public int getSequenceNumberForFileOffset(String filePath, int fileOffset) { LocationCtx ctx= fRootContext; if (filePath != null) { - LinkedList contexts= new LinkedList(); + ArrayDeque contexts= new ArrayDeque(); while (ctx != null) { if (ctx instanceof LocationCtxFile) { if (filePath.equals(ctx.getFilePath())) {