Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f9c07f3b authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Replace LinkedList by a more performant collection"

parents 77d370d9 c98fb7da
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -39,9 +39,9 @@ import android.util.Log;

import java.io.File;
import java.io.IOException;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedList;
import java.util.List;
import java.util.Objects;

@@ -977,7 +977,7 @@ public class Environment {
    }

    private static boolean hasInterestingFiles(File dir) {
        final LinkedList<File> explore = new LinkedList<>();
        final ArrayDeque<File> explore = new ArrayDeque<>();
        explore.add(dir);
        while (!explore.isEmpty()) {
            dir = explore.pop();