mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Add nullness annotations to Representation
#fixit PiperOrigin-RevId: 559690973
This commit is contained in:
parent
5276f797e5
commit
80495ddf9c
2 changed files with 4 additions and 2 deletions
|
|
@ -63,7 +63,7 @@ public abstract class Representation {
|
||||||
/** Supplemental properties in the adaptation set. May be empty. */
|
/** Supplemental properties in the adaptation set. May be empty. */
|
||||||
public final List<Descriptor> supplementalProperties;
|
public final List<Descriptor> supplementalProperties;
|
||||||
|
|
||||||
private final RangedUri initializationUri;
|
@Nullable private final RangedUri initializationUri;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a new instance.
|
* Constructs a new instance.
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ import com.google.common.math.BigIntegerMath;
|
||||||
import java.math.BigInteger;
|
import java.math.BigInteger;
|
||||||
import java.math.RoundingMode;
|
import java.math.RoundingMode;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import org.checkerframework.checker.initialization.qual.UnderInitialization;
|
||||||
|
|
||||||
/** An approximate representation of a SegmentBase manifest element. */
|
/** An approximate representation of a SegmentBase manifest element. */
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
|
|
@ -60,7 +61,8 @@ public abstract class SegmentBase {
|
||||||
* @return A {@link RangedUri} defining the location of the initialization data, or null.
|
* @return A {@link RangedUri} defining the location of the initialization data, or null.
|
||||||
*/
|
*/
|
||||||
@Nullable
|
@Nullable
|
||||||
public RangedUri getInitialization(Representation representation) {
|
public RangedUri getInitialization(
|
||||||
|
@UnderInitialization(Representation.class) Representation representation) {
|
||||||
return initialization;
|
return initialization;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue