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

Commit 5c799493 authored by Narayan Kamath's avatar Narayan Kamath Committed by Android (Google) Code Review
Browse files

Merge "Make LruCache.resize(int) public"

parents e1abfdf7 a1226a7a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -27155,6 +27155,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) {