From c03c9ade0e17de0de2775aa5b3c2555bc7b3b3a2 Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Thu, 16 May 2013 16:54:12 -0700 Subject: [PATCH] Replaced LinkedList by ArrayDeque. --- .../eclipse/cdt/internal/core/parser/scanner/LocationMap.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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())) {