summaryrefslogtreecommitdiff
path: root/core/java/android/webkit/TracingController.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/TracingController.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/TracingController.java')
-rw-r--r--core/java/android/webkit/TracingController.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/java/android/webkit/TracingController.java b/core/java/android/webkit/TracingController.java
index 30f465cb42c6..99081827658a 100644
--- a/core/java/android/webkit/TracingController.java
+++ b/core/java/android/webkit/TracingController.java
@@ -43,6 +43,13 @@ import java.util.concurrent.Executor;
* </pre></p>
*/
public abstract class TracingController {
+ /**
+ * @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 TracingController() {}
/**
* Returns the default TracingController instance. At present there is