mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Replaced LinkedList by ArrayDeque.
This commit is contained in:
parent
ca2aa076dc
commit
c03c9ade0e
1 changed files with 2 additions and 2 deletions
|
@ -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())) {
|
||||
|
|
Loading…
Add table
Reference in a new issue