11/****************************************************************************
2- * Copyright 2021, Optimizely, Inc. and contributors *
2+ * Copyright 2021, Optimizely, Inc. and contributors *
33 * *
44 * Licensed under the Apache License, Version 2.0 (the "License"); *
55 * you may not use this file except in compliance with the License. *
@@ -45,7 +45,6 @@ public class WorkerScheduler {
4545 * Unschedule a scheduled service for a given worker id
4646 * @param context current application context
4747 * @param workerId work id to cancel
48- * @return An {@link Operation} that can be used to determine when the cancelAllWorkByTag has completed
4948 */
5049 public static void unscheduleService (Context context , String workerId ) {
5150 WorkManager .getInstance (context ).cancelAllWorkByTag (workerId );
@@ -58,7 +57,7 @@ public static void unscheduleService(Context context, String workerId) {
5857 * @param clazz class based on ListenableWorker
5958 * @param data androidx.work.Data
6059 * @param interval the interval for the repeated service
61- * @return An < WorkRequest, Operation> that can be used for tracing work state
60+ * @return An ( WorkRequest, Operation) that can be used for tracing work state
6261 */
6362 public static AbstractMap .SimpleEntry <WorkRequest , Operation > scheduleService (Context context , String workerId , Class clazz , Data data , long interval ) {
6463 WorkManager .getInstance (context ).cancelAllWorkByTag (workerId );
@@ -91,7 +90,7 @@ public static AbstractMap.SimpleEntry<WorkRequest, Operation> scheduleService(Co
9190 * @param clazz - worker class
9291 * @param data - input data for the worker
9392 * @param retryInterval - the dispatch retry interval in milli-seconds
94- * @return An < WorkRequest, Operation> that can be used for tracing work state
93+ * @return An ( WorkRequest, Operation) that can be used for tracing work state
9594 */
9695 public static AbstractMap .SimpleEntry <WorkRequest , Operation > startService (Context context , String workerId , Class clazz , Data data , Long retryInterval ) {
9796 // Create a WorkRequest for your Worker and sending it input
0 commit comments