From 280de4eab97dad751b041d772ef5d31124b7e77f Mon Sep 17 00:00:00 2001 From: Kweku Adams Date: Tue, 10 Mar 2020 17:55:27 -0700 Subject: [PATCH] Update documentation. Remove obsolete comments. We no longer require apps to specify at least one constraint. Fix typo. Bug: 118636037 Bug: 141645789 Test: N/A Change-Id: I1abf14c10f7330bccb51600eb82a398208a4f542 --- .../jobscheduler/framework/java/android/app/job/JobInfo.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apex/jobscheduler/framework/java/android/app/job/JobInfo.java b/apex/jobscheduler/framework/java/android/app/job/JobInfo.java index b9052734b65f1..ae8976a2972e2 100644 --- a/apex/jobscheduler/framework/java/android/app/job/JobInfo.java +++ b/apex/jobscheduler/framework/java/android/app/job/JobInfo.java @@ -53,9 +53,8 @@ import java.util.Objects; * Container of data passed to the {@link android.app.job.JobScheduler} fully encapsulating the * parameters required to schedule work against the calling application. These are constructed * using the {@link JobInfo.Builder}. - * You must specify at least one sort of constraint on the JobInfo object that you are creating. * The goal here is to provide the scheduler with high-level semantics about the work you want to - * accomplish. Doing otherwise with throw an exception in your app. + * accomplish. */ public class JobInfo implements Parcelable { private static String TAG = "JobInfo"; @@ -147,7 +146,7 @@ public class JobInfo implements Parcelable { /** * Query the minimum interval allowed for periodic scheduled jobs. Attempting - * to declare a smaller period that this when scheduling a job will result in a + * to declare a smaller period than this when scheduling a job will result in a * job that is still periodic, but will run with this effective period. * * @return The minimum available interval for scheduling periodic jobs, in milliseconds.