Remove IfAny suffix from @Nullable IntDef locals in MCImplBase

We use `@Nullable` for IntDefs in other places and don't use this suffix
elsewhere, so I don't think we need it here either.

PiperOrigin-RevId: 543687285
This commit is contained in:
ibaker 2023-06-27 09:54:48 +00:00 committed by Tianyi Feng
parent f8491fc61f
commit dc311fd0ca

View File

@ -2581,7 +2581,7 @@ import org.checkerframework.checker.nullness.qual.NonNull;
@Nullable
@Player.DiscontinuityReason
Integer positionDiscontinuityReasonIfAny =
Integer positionDiscontinuityReason =
(!oldPlayerInfo.oldPositionInfo.equals(newPlayerInfo.oldPositionInfo)
|| !oldPlayerInfo.newPositionInfo.equals(newPlayerInfo.newPositionInfo))
? finalPlayerInfo.discontinuityReason
@ -2589,21 +2589,21 @@ import org.checkerframework.checker.nullness.qual.NonNull;
@Nullable
@Player.MediaItemTransitionReason
Integer mediaItemTransitionReasonIfAny =
Integer mediaItemTransitionReason =
!Util.areEqual(oldPlayerInfo.getCurrentMediaItem(), finalPlayerInfo.getCurrentMediaItem())
? finalPlayerInfo.mediaItemTransitionReason
: null;
@Nullable
@Player.TimelineChangeReason
Integer timelineChangeReasonIfAny =
Integer timelineChangeReason =
!oldPlayerInfo.timeline.equals(finalPlayerInfo.timeline)
? finalPlayerInfo.timelineChangeReason
: null;
@Nullable
@Player.PlayWhenReadyChangeReason
Integer playWhenReadyChangeReasonIfAny =
Integer playWhenReadyChangeReason =
oldPlayerInfo.playWhenReady != finalPlayerInfo.playWhenReady
? finalPlayerInfo.playWhenReadyChangeReason
: null;
@ -2611,10 +2611,10 @@ import org.checkerframework.checker.nullness.qual.NonNull;
notifyPlayerInfoListenersWithReasons(
oldPlayerInfo,
finalPlayerInfo,
timelineChangeReasonIfAny,
playWhenReadyChangeReasonIfAny,
positionDiscontinuityReasonIfAny,
mediaItemTransitionReasonIfAny);
timelineChangeReason,
playWhenReadyChangeReason,
positionDiscontinuityReason,
mediaItemTransitionReason);
}
void onAvailableCommandsChangedFromSession(