From 1ef63263852604bbb57a867c25abdb47a40dc109 Mon Sep 17 00:00:00 2001 From: aquilescanta Date: Fri, 18 Jun 2021 14:01:56 +0100 Subject: [PATCH] Move documentation about the fields to the fields' javadocs Also avoid mentioning that those fields cannot be null, since they are primitives. PiperOrigin-RevId: 380169988 --- .../exoplayer2/source/rtsp/RtspTrackTiming.java | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtspTrackTiming.java b/library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtspTrackTiming.java index 19330a9042..3e6d34038e 100644 --- a/library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtspTrackTiming.java +++ b/library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtspTrackTiming.java @@ -25,8 +25,6 @@ import com.google.common.collect.ImmutableList; /** * Represents an RTSP track's timing info, included as {@link RtspHeaders#RTP_INFO} in an RTSP PLAY * response (RFC2326 Section 12.33). - * - *

The fields {@link #rtpTimestamp} and {@link #sequenceNumber} will not both be {@code null}. */ /* package */ final class RtspTrackTiming { @@ -98,9 +96,17 @@ import com.google.common.collect.ImmutableList; return listBuilder.build(); } - /** The timestamp of the next RTP packet, {@link C#TIME_UNSET} if not present. */ + /** + * The timestamp of the next RTP packet, {@link C#TIME_UNSET} if not present. + * + *

Cannot be {@link C#TIME_UNSET} if {@link #sequenceNumber} is {@link C#INDEX_UNSET}. + */ public final long rtpTimestamp; - /** The sequence number of the next RTP packet, {@link C#INDEX_UNSET} if not present. */ + /** + * The sequence number of the next RTP packet, {@link C#INDEX_UNSET} if not present. + * + *

Cannot be {@link C#INDEX_UNSET} if {@link #rtpTimestamp} is {@link C#TIME_UNSET}. + */ public final int sequenceNumber; /** The {@link Uri} that identifies a matching {@link RtspMediaTrack}. */ public final Uri uri;