This is the source code in androidx.core:core-ktx:1.10.0:
public static @NonNull PendingIntent getBroadcast(
@NonNull Context context,
int requestCode,
@NonNull Intent intent,
@Flags int flags,
boolean isMutable) {
return PendingIntent.getBroadcast(
context, requestCode, intent, addMutabilityFlags(isMutable, flags));
}
It seems that its return value cannot be null because of the "@NonNull" annotation, but PendingIntent.getBroadcast "Returns an existing or new PendingIntent matching the given parameters. May return null only if FLAG_NO_CREATE has been supplied."
Description
Component used: Core Version used: 1.10.0
This is the source code in androidx.core:core-ktx:1.10.0:
It seems that its return value cannot be null because of the "@NonNull" annotation, but PendingIntent.getBroadcast "Returns an existing or new PendingIntent matching the given parameters. May return null only if FLAG_NO_CREATE has been supplied."