Bug 1573196 - Fixed GeckoWebExecutor documentation. r=geckoview-reviewers,snorp
authorAlvina Waseem <awaseem@mozilla.com>
Thu, 22 Aug 2019 18:53:57 +0000
changeset 489475 1c5e22cd2378f68d90babb8e3b0aa0aaf62b72bc
parent 489474 1fbb898025967efb481820fb5b3158fc137ea538
child 489476 e20eabe294e06a10016114a896f5eb85c9481a26
push id36475
push userncsoregi@mozilla.com
push dateFri, 23 Aug 2019 09:45:38 +0000
treeherdermozilla-central@5df00af5913e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgeckoview-reviewers, snorp
bugs1573196
milestone70.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1573196 - Fixed GeckoWebExecutor documentation. r=geckoview-reviewers,snorp Differential Revision: https://phabricator.services.mozilla.com/D43086
mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoWebExecutor.java
--- a/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoWebExecutor.java
+++ b/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoWebExecutor.java
@@ -21,22 +21,22 @@ import org.mozilla.gecko.GeckoThread;
 import org.mozilla.gecko.annotation.WrapForJNI;
 
 /**
  * GeckoWebExecutor is responsible for fetching a {@link WebRequest} and delivering
  * a {@link WebResponse} to the caller via {@link #fetch(WebRequest)}. Example:
  * <pre>
  *     final GeckoWebExecutor executor = new GeckoWebExecutor();
  *
- *     final GeckoResult&lt;WebResponse&gt; response = executor.fetch(
+ *     final GeckoResult&lt;WebResponse&gt; result = executor.fetch(
  *             new WebRequest.Builder("https://example.org/json")
  *             .header("Accept", "application/json")
  *             .build());
  *
- *     response.then(response -&gt; {
+ *     result.then(response -&gt; {
  *         // Do something with response
  *     });
  * </pre>
  */
 @AnyThread
 public class GeckoWebExecutor {
     // We don't use this right now because we access GeckoThread directly, but
     // it's future-proofing for a world where we allow multiple GeckoRuntimes.