mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
vcs: do not use LinkedList for a random access
This commit is contained in:
@@ -107,12 +107,7 @@ public class ChangeListWorker implements ChangeListsWriteOperations {
|
||||
|
||||
private boolean checkForMultipleCopiesNotMove() {
|
||||
boolean somethingChanged = false;
|
||||
final MultiMap<FilePath, Pair<Change, String>> moves = new MultiMap<FilePath, Pair<Change, String>>() {
|
||||
@NotNull
|
||||
protected Collection<Pair<Change, String>> createCollection() {
|
||||
return new LinkedList<>();
|
||||
}
|
||||
};
|
||||
final MultiMap<FilePath, Pair<Change, String>> moves = new MultiMap<>();
|
||||
|
||||
for (LocalChangeList changeList : myMap.values()) {
|
||||
final Collection<Change> changes = changeList.getChanges();
|
||||
|
||||
Reference in New Issue
Block a user