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

Commit a1226a7a authored by Narayan Kamath's avatar Narayan Kamath
Browse files

Make LruCache.resize(int) public

parent c4f6c351
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -27145,6 +27145,7 @@ package android.util {
    method public final V put(K, V);
    method public final synchronized int putCount();
    method public final V remove(K);
    method public void resize(int);
    method public final synchronized int size();
    method protected int sizeOf(K, V);
    method public final synchronized java.util.Map<K, V> snapshot();
+1 −2
Original line number Diff line number Diff line
@@ -87,9 +87,8 @@ public class LruCache<K, V> {

    /**
     * Sets the size of the cache.
     * @param maxSize The new maximum size.
     *
     * @hide
     * @param maxSize The new maximum size.
     */
    public void resize(int maxSize) {
        if (maxSize <= 0) {