Deprecate mutable static MediaParserChunkExtractor.FACTORY

Follow-up to <unknown commit>

PiperOrigin-RevId: 715329316
This commit is contained in:
ibaker 2025-01-14 04:43:36 -08:00 committed by Copybara-Service
parent 6300a55eb2
commit eefad8cbfa

View File

@ -141,7 +141,11 @@ public final class MediaParserChunkExtractor implements ChunkExtractor {
}
}
public static final ChunkExtractor.Factory FACTORY = new Factory();
/**
* @deprecated {@link ChunkExtractor.Factory} is mutable, so a static instance is not safe.
* Instantiate a new {@link Factory} instead.
*/
@Deprecated public static final ChunkExtractor.Factory FACTORY = new Factory();
private final OutputConsumerAdapterV30 outputConsumerAdapter;
private final InputReaderAdapterV30 inputReaderAdapter;