diff options
| author | 2017-05-05 16:55:43 -0700 | |
|---|---|---|
| committer | 2017-05-05 17:09:46 -0700 | |
| commit | 51142577ab65ae235a0f69af86900d11e55f37df (patch) | |
| tree | ba87347ba2162e38c2d5a17706e712473fc1329c | |
| parent | 718688f39bc6d760fac650ad2a76e490c2465e4b (diff) | |
docs: Changing "http" to "https" in Javadoc examples
Several of the Javadoc comments had code snippets that used "http"
web addresses (e.g. "http://example.com"). Our style heavily
recommends using https whenever possible; in addition, this caused
the generated Javadoc files to fail presubmit checks when we try
to migrate them to Piper (see, e.g., http://cl/155212684)
In addition, one code snipped used (as an example) a link to
http://slashdot.org/ ; we really shouldn't be using links to real
websited (that we don't control) unless we absolutely have to.
I changed all the examples to "https://example.com/" ; I've verified
that that's a valid URL (they've got a good certificate).
Generated the doc and staged it to:
go/dac-stage/reference/android/webkit/WebView.html
Test: make ds-docs
Bug: 37996959
Change-Id: Id8e44930b107b94022376a260892ed867ba281fc
| -rw-r--r-- | core/java/android/webkit/WebView.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index 52c82a71fb7e..ecb25fead18c 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -98,7 +98,7 @@ import java.util.Map; * invoke the Browser application with a URL Intent rather than show it * with a WebView. For example: * <pre> - * Uri uri = Uri.parse("http://www.example.com"); + * Uri uri = Uri.parse("https://www.example.com"); * Intent intent = new Intent(Intent.ACTION_VIEW, uri); * startActivity(intent); * </pre> @@ -116,7 +116,7 @@ import java.util.Map; * <pre> * // Simplest usage: note that an exception will NOT be thrown * // if there is an error loading this page (see below). - * webview.loadUrl("http://slashdot.org/"); + * webview.loadUrl("https://example.com/"); * * // OR, you can also load from an HTML string: * String summary = "<html><body>You scored <b>192</b> points.</body></html>"; @@ -175,7 +175,7 @@ import java.util.Map; * } * }); * - * webview.loadUrl("http://developer.android.com/"); + * webview.loadUrl("https://developer.android.com/"); * </pre> * * <h3>Zoom</h3> @@ -2705,7 +2705,7 @@ public class WebView extends AbsoluteLayout * <p>Example2: an IFRAME tag. * * <pre class="prettyprint"> - * <iframe src="http://example.com/login"/> + * <iframe src="https://example.com/login"/> * </pre> * * <p>Would map to: @@ -2714,7 +2714,7 @@ public class WebView extends AbsoluteLayout * int index = structure.addChildCount(1); * ViewStructure iframe = structure.newChildFor(index); * iframe.setHtmlInfo(child.newHtmlInfoBuilder("iframe") - * .addAttribute("url", "http://example.com/login") + * .addAttribute("url", "https://example.com/login") * .build()); * </pre> */ |