From d23189b998402fc9eae62bb4f7f0223d213c95f8 Mon Sep 17 00:00:00 2001 From: Aurimas Liutikas Date: Tue, 10 Nov 2020 15:32:51 -0800 Subject: 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 --- apex/jobscheduler/framework/java/android/app/job/JobScheduler.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apex') 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 getStartedJobs(); /** @@ -205,5 +207,6 @@ public abstract class JobScheduler { *

This is a slow operation, so it should be called sparingly. * @hide */ + @SuppressWarnings("HiddenAbstractMethod") public abstract List getAllJobSnapshots(); } \ No newline at end of file -- cgit v1.2.3