diff options
| author | Nate Fischer <ntfschr@google.com> | 2018-09-25 18:27:25 -0700 |
|---|---|---|
| committer | Nate Fischer <ntfschr@google.com> | 2018-09-25 19:13:57 -0700 |
| commit | 1e13fae31cc05baef8bbca641d5fe2cb4403dc09 (patch) | |
| tree | 1903b675a2d584c177896d933477377831beb93f /core/java/android/webkit/CookieManager.java | |
| parent | abdaf5b51f798a4d9a1bae7b515df6ae40c2d591 (diff) | |
WebView: deprecate accidentally-exposed constructors
This deprecates public-exposed constructors. These constructors were
exposed by accident. These classes shouldn't be instantiated by
applications, but should only be instantiated by WebView.
In some cases, the app should get a singleton instance using
a #getInstance method. In these cases, we document this explicitly in
the deprecation note.
Bug: 110807530
Test: make docs, manually verify docs look good.
Change-Id: Ibe73b3399c9ced0cf4fbb01e1df13564476df252
Diffstat (limited to 'core/java/android/webkit/CookieManager.java')
| -rw-r--r-- | core/java/android/webkit/CookieManager.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/java/android/webkit/CookieManager.java b/core/java/android/webkit/CookieManager.java index ae6a2fd787d7..23d12374453f 100644 --- a/core/java/android/webkit/CookieManager.java +++ b/core/java/android/webkit/CookieManager.java @@ -25,6 +25,13 @@ import android.net.WebAddress; * Cookies are manipulated according to RFC2109. */ public abstract class CookieManager { + /** + * @deprecated This class should not be constructed by applications, use {@link #getInstance} + * instead to fetch the singleton instance. + */ + // TODO(ntfschr): mark this as @SystemApi after a year. + @Deprecated + public CookieManager() {} @Override protected Object clone() throws CloneNotSupportedException { |
