Inline redundant constructor

PiperOrigin-RevId: 376005620
This commit is contained in:
aquilescanta 2021-05-26 20:37:37 +01:00 committed by Oliver Woodman
parent 85e4137b81
commit 8f04d36f59

View file

@ -31,7 +31,11 @@ import java.util.Arrays;
public static final class ItemData {
/** Holds no media information. */
public static final ItemData EMPTY = new ItemData();
public static final ItemData EMPTY =
new ItemData(
/* durationUs= */ C.TIME_UNSET,
/* defaultPositionUs= */ C.TIME_UNSET,
/* isLive= */ false);
/** The duration of the item in microseconds, or {@link C#TIME_UNSET} if unknown. */
public final long durationUs;
@ -42,13 +46,6 @@ import java.util.Arrays;
/** Whether the item is live content, or {@code false} if unknown. */
public final boolean isLive;
private ItemData() {
this(
/* durationUs= */ C.TIME_UNSET,
/* defaultPositionUs= */ C.TIME_UNSET,
/* isLive= */ false);
}
/**
* Creates an instance.
*