Skip to content

Commit

Permalink
Fix DownloadManager.TaskState javadoc
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=215213255
  • Loading branch information
erdemguven authored and ojw28 committed Oct 1, 2018
1 parent 46731cd commit 7940fdf
Showing 1 changed file with 10 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -528,9 +528,9 @@ public static final class TaskState {
* <p>Transition diagram:
*
* <pre>
* -&gt; canceled
* queued &lt;-&gt; started -&gt; completed
* -&gt; failed
* ┌────────┬─────→ canceled
* queued started ┬→ completed
* └→ failed
* </pre>
*/
@Documented
Expand Down Expand Up @@ -609,18 +609,15 @@ private static final class Task implements Runnable {
* {@link #STATE_QUEUED_CANCELING}, {@link #STATE_STARTED_CANCELING} or {@link
* #STATE_STARTED_STOPPING}.
*
* <p>Transition map (vertical states are source states):
* <p>Transition diagram:
*
* <pre>
* +------+-------+---------+-----------+-----------+--------+--------+------+
* |queued|started|completed|q_canceling|s_canceling|canceled|stopping|failed|
* +-----------+------+-------+---------+-----------+-----------+--------+--------+------+
* |queued | | X | | X | | | | |
* |started | | | X | | X | | X | X |
* |q_canceling| | | | | | X | | |
* |s_canceling| | | | | | X | | |
* |stopping | X | | | | | | | |
* +-----------+------+-------+---------+-----------+-----------+--------+--------+------+
* ┌───→ q_canceling ┬→ canceled
* │ s_canceling ┘
* │ ↑
* queued → started ────┬→ completed
* ↑ ↓ └→ failed
* └──── s_stopping
* </pre>
*/
@Documented
Expand Down

0 comments on commit 7940fdf

Please sign in to comment.