vcs: do not use LinkedList for a random access

This commit is contained in:
Aleksey Pivovarov
2017-05-29 21:33:37 +03:00
parent 10808ef079
commit a492ab6b13
@@ -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();