From 913e00c8c28bfe73eaae0a50cd3c0b897c922399 Mon Sep 17 00:00:00 2001 From: Anna Malova Date: Wed, 14 Oct 2020 19:21:10 +0100 Subject: [PATCH] Rename PacProcessor#releasePacProcessor to PacProcessor#release. Bug: 170226229 CTS-Coverage-Bug: 169844605 Test: n/a Change-Id: Iba954d0a2784e69156dd1be14714a1c53b7bec07 --- api/system-current.txt | 2 +- core/java/android/webkit/PacProcessor.java | 6 +++--- non-updatable-api/system-current.txt | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/api/system-current.txt b/api/system-current.txt index 2e53058f96d25..63826116097a6 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -13092,7 +13092,7 @@ package android.webkit { method @Nullable public String findProxyForUrl(@NonNull String); method @NonNull public static android.webkit.PacProcessor getInstance(); method @Nullable public default android.net.Network getNetwork(); - method public default void releasePacProcessor(); + method public default void release(); method public default void setNetwork(@Nullable android.net.Network); method public boolean setProxyScript(@NonNull String); } diff --git a/core/java/android/webkit/PacProcessor.java b/core/java/android/webkit/PacProcessor.java index 28496c6f8a070..d7b4e8bba8840 100644 --- a/core/java/android/webkit/PacProcessor.java +++ b/core/java/android/webkit/PacProcessor.java @@ -34,7 +34,7 @@ public interface PacProcessor { * *

There can only be one default {@link PacProcessor} instance. * This method will create a new instance if one did not already exist, or - * if the previous instance was released with {@link #releasePacProcessor}. + * if the previous instance was released with {@link #release}. * * @return the default PacProcessor instance. */ @@ -47,7 +47,7 @@ public interface PacProcessor { * Create a new PacProcessor instance. * *

The created instance needs to be released manually once it is no longer needed - * by calling {@link #releasePacProcessor} to prevent memory leaks. + * by calling {@link #release} to prevent memory leaks. * *

The created instance is not tied to any particular {@link Network}. * To associate {@link PacProcessor} with a {@link Network} use {@link #setNetwork} method. @@ -82,7 +82,7 @@ public interface PacProcessor { * {@link #getInstance} and {@link #getInstanceForNetwork} * for the same network will create a new instance. */ - default void releasePacProcessor() { + default void release() { throw new UnsupportedOperationException("Not implemented"); } diff --git a/non-updatable-api/system-current.txt b/non-updatable-api/system-current.txt index 75e038be1a2b9..d70f02804a214 100644 --- a/non-updatable-api/system-current.txt +++ b/non-updatable-api/system-current.txt @@ -11926,7 +11926,7 @@ package android.webkit { method @Nullable public String findProxyForUrl(@NonNull String); method @NonNull public static android.webkit.PacProcessor getInstance(); method @Nullable public default android.net.Network getNetwork(); - method public default void releasePacProcessor(); + method public default void release(); method public default void setNetwork(@Nullable android.net.Network); method public boolean setProxyScript(@NonNull String); }