diff options
author | Aurimas Liutikas <aurimas@google.com> | 2020-11-10 15:32:51 -0800 |
---|---|---|
committer | Aurimas Liutikas <aurimas@google.com> | 2020-11-13 02:56:20 +0000 |
commit | d23189b998402fc9eae62bb4f7f0223d213c95f8 (patch) | |
tree | a171a49ba53d3eb4242d10f19f6f5656e14350c8 /apex | |
parent | ef2c66e72f90eff8beb01313ba1cf873f3c3de21 (diff) |
Suppress all hidden abstract methods in constructable classes.
Having a hidden abstract method for a class that can be extended
means that public implementors cannot implement these hidden methods
posing a risk that custom implementations will not have required
abstract methods resulting in an exception.
Bug: 151134792
Test: make update-api
Change-Id: I758d12465fabc671be19bedeeceb16885de23c87
Merged-In: I758d12465fabc671be19bedeeceb16885de23c87
Exempt-From-Owner-Approval: large scale suppression of existing issues,
no-op in terms of behavior
Diffstat (limited to 'apex')
-rw-r--r-- | apex/jobscheduler/framework/java/android/app/job/JobScheduler.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apex/jobscheduler/framework/java/android/app/job/JobScheduler.java b/apex/jobscheduler/framework/java/android/app/job/JobScheduler.java index 42725c51fd87..e0467df823dd 100644 --- a/apex/jobscheduler/framework/java/android/app/job/JobScheduler.java +++ b/apex/jobscheduler/framework/java/android/app/job/JobScheduler.java @@ -154,6 +154,7 @@ public abstract class JobScheduler { * @param tag Debugging tag for dumps associated with this job (instead of the service class) * @hide */ + @SuppressWarnings("HiddenAbstractMethod") @SystemApi @RequiresPermission(android.Manifest.permission.UPDATE_DEVICE_STATS) public abstract @Result int scheduleAsPackage(@NonNull JobInfo job, @NonNull String packageName, @@ -196,6 +197,7 @@ public abstract class JobScheduler { * Returns a list of all currently-executing jobs. * @hide */ + @SuppressWarnings("HiddenAbstractMethod") public abstract List<JobInfo> getStartedJobs(); /** @@ -205,5 +207,6 @@ public abstract class JobScheduler { * <p class="note">This is a slow operation, so it should be called sparingly. * @hide */ + @SuppressWarnings("HiddenAbstractMethod") public abstract List<JobSnapshot> getAllJobSnapshots(); }
\ No newline at end of file |