1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

Replaced LinkedList by ArrayDeque.

This commit is contained in:
Sergey Prigogin 2013-05-16 16:54:12 -07:00
parent ca2aa076dc
commit c03c9ade0e

View file

@ -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<LocationCtx> contexts= new LinkedList<LocationCtx>();
ArrayDeque<LocationCtx> contexts= new ArrayDeque<LocationCtx>();
while (ctx != null) {
if (ctx instanceof LocationCtxFile) {
if (filePath.equals(ctx.getFilePath())) {