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

Commit c2c9a249 authored by Jesse Wilson's avatar Jesse Wilson
Browse files

Don't add setMaxSize() to the LruCache API. But do add maxSize().

Change-Id: I9697ab29491dabe85c2400defdde16b9abcd003a
parent b1d884d5
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -204787,6 +204787,17 @@
 visibility="public"
>
</method>
<method name="maxSize"
 return="int"
 abstract="false"
 native="false"
 synchronized="true"
 static="false"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="missCount"
 return="int"
 abstract="false"
+1 −1
Original line number Diff line number Diff line
@@ -261,7 +261,7 @@ public class SQLiteDatabase extends SQLiteClosable {
    private final WeakHashMap<SQLiteClosable, Object> mPrograms;

    /** Default statement-cache size per database connection ( = instance of this class) */
    public static final int DEFAULT_SQL_CACHE_SIZE = 25;
    private static final int DEFAULT_SQL_CACHE_SIZE = 25;

    /**
     * for each instance of this class, a LRU cache is maintained to store
+2 −0
Original line number Diff line number Diff line
@@ -158,6 +158,8 @@ public class LruCache<K, V> {
     * Sets the maximum size of this cache. Decreasing the maximum size may
     * evict entries from this cache.
     *
     * @hide
     *
     * @param maxSize for caches that do not override {@link #sizeOf}, this is
     *     the maximum number of entries in the cache. For all other caches,
     *     this is the maximum sum of the sizes of the entries in this cache.