mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 16:56:04 +02:00
Use ArrayDeque instead of LinkedList.
This commit is contained in:
parent
69993cb776
commit
1b8433ebd6
1 changed files with 2 additions and 3 deletions
|
@ -17,11 +17,11 @@ import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.lang.reflect.InvocationTargetException;
|
import java.lang.reflect.InvocationTargetException;
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
|
import java.util.ArrayDeque;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.LinkedList;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
@ -438,8 +438,7 @@ public class AddIncludeOnSelectionAction extends TextEditorAction {
|
||||||
if (isWorkspaceFile(headerFile.getLocation().getURI())) {
|
if (isWorkspaceFile(headerFile.getLocation().getURI())) {
|
||||||
return headerFile;
|
return headerFile;
|
||||||
}
|
}
|
||||||
// TODO(sprigogin): Change to ArrayDeque when Java 5 support is no longer needed.
|
ArrayDeque<IIndexFile> front = new ArrayDeque<IIndexFile>();
|
||||||
LinkedList<IIndexFile> front = new LinkedList<IIndexFile>();
|
|
||||||
front.add(headerFile);
|
front.add(headerFile);
|
||||||
HashSet<IIndexFile> processed = new HashSet<IIndexFile>();
|
HashSet<IIndexFile> processed = new HashSet<IIndexFile>();
|
||||||
processed.add(headerFile);
|
processed.add(headerFile);
|
||||||
|
|
Loading…
Add table
Reference in a new issue