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

Commit 81b5db04 authored by Vasu Nori's avatar Vasu Nori Committed by Android (Google) Code Review
Browse files

Merge "weird java bug. bug:2941509"

parents d5350764 9a8bc78d
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -2392,10 +2392,9 @@ public class SQLiteDatabase extends SQLiteClosable {
        ArrayList<DbStats> dbStatsList = new ArrayList<DbStats>();
        // make a local copy of mActiveDatabases - so that this method is not competing
        // for synchronization lock on mActiveDatabases
        ArrayList<WeakReference<SQLiteDatabase>> tempList =
                new ArrayList<WeakReference<SQLiteDatabase>>();
        ArrayList<WeakReference<SQLiteDatabase>> tempList;
        synchronized(mActiveDatabases) {
            Collections.copy(tempList, mActiveDatabases);
            tempList = (ArrayList<WeakReference<SQLiteDatabase>>)mActiveDatabases.clone();
        }
        for (WeakReference<SQLiteDatabase> w : tempList) {
            SQLiteDatabase db = w.get();