Suppress more error prone warnings that are false positives
Bug: 160794467 Test: TH Change-Id: I8fd2524c9841d5f7e36d987d762f9bc6c11c4216
This commit is contained in:
@@ -397,6 +397,7 @@ public final class PendingIntent implements Parcelable {
|
||||
* parameters. May return null only if {@link #FLAG_NO_CREATE} has been
|
||||
* supplied.
|
||||
*/
|
||||
@SuppressWarnings("AndroidFrameworkPendingIntentMutability")
|
||||
public static PendingIntent getActivity(Context context, int requestCode,
|
||||
@NonNull Intent intent, @Flags int flags, @Nullable Bundle options) {
|
||||
// Some tests only mock Context.getUserId(), so fallback to the id Context.getUser() is null
|
||||
@@ -528,6 +529,7 @@ public final class PendingIntent implements Parcelable {
|
||||
* parameters. May return null only if {@link #FLAG_NO_CREATE} has been
|
||||
* supplied.
|
||||
*/
|
||||
@SuppressWarnings("AndroidFrameworkPendingIntentMutability")
|
||||
public static PendingIntent getActivities(Context context, int requestCode,
|
||||
@NonNull Intent[] intents, @Flags int flags, @Nullable Bundle options) {
|
||||
// Some tests only mock Context.getUserId(), so fallback to the id Context.getUser() is null
|
||||
|
||||
Reference in New Issue
Block a user