summaryrefslogtreecommitdiff
path: root/core/java/android/webkit/SafeBrowsingResponse.java
diff options
context:
space:
mode:
authorNate Fischer <ntfschr@google.com>2018-09-25 18:27:25 -0700
committerNate Fischer <ntfschr@google.com>2018-09-25 19:13:57 -0700
commit1e13fae31cc05baef8bbca641d5fe2cb4403dc09 (patch)
tree1903b675a2d584c177896d933477377831beb93f /core/java/android/webkit/SafeBrowsingResponse.java
parentabdaf5b51f798a4d9a1bae7b515df6ae40c2d591 (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/SafeBrowsingResponse.java')
-rw-r--r--core/java/android/webkit/SafeBrowsingResponse.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/webkit/SafeBrowsingResponse.java b/core/java/android/webkit/SafeBrowsingResponse.java
index 7839a00eff69..ca33a0c659af 100644
--- a/core/java/android/webkit/SafeBrowsingResponse.java
+++ b/core/java/android/webkit/SafeBrowsingResponse.java
@@ -27,6 +27,12 @@ package android.webkit;
* {@link android.webkit.WebView#getSafeBrowsingPrivacyPolicyUrl()}.
*/
public abstract class SafeBrowsingResponse {
+ /**
+ * @deprecated This class should not be constructed by applications.
+ */
+ // TODO(ntfschr): mark this as @SystemApi after a year.
+ @Deprecated
+ public SafeBrowsingResponse() {}
/**
* Display the default interstitial.