mirror of
https://github.com/samsonjs/media.git
synced 2026-03-31 10:25:48 +00:00
Merge pull request #10011 from tonykwok:dev-v2
PiperOrigin-RevId: 431395359
(cherry picked from commit f66c9290ad)
This commit is contained in:
parent
af89163883
commit
9a50379194
1 changed files with 4 additions and 1 deletions
|
|
@ -23,6 +23,8 @@ import static java.lang.annotation.ElementType.TYPE_USE;
|
|||
|
||||
import androidx.annotation.IntDef;
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/** Thrown when the requested DRM scheme is not supported. */
|
||||
|
|
@ -33,8 +35,9 @@ public final class UnsupportedDrmException extends Exception {
|
|||
* #REASON_INSTANTIATION_ERROR}.
|
||||
*/
|
||||
// @Target list includes both 'default' targets and TYPE_USE, to ensure backwards compatibility
|
||||
// with Kotlin usages from before TYPE_USE was added. @Retention(RetentionPolicy.SOURCE)
|
||||
// with Kotlin usages from before TYPE_USE was added.
|
||||
@Documented
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@Target({FIELD, METHOD, PARAMETER, LOCAL_VARIABLE, TYPE_USE})
|
||||
@IntDef({REASON_UNSUPPORTED_SCHEME, REASON_INSTANTIATION_ERROR})
|
||||
public @interface Reason {}
|
||||
|
|
|
|||
Loading…
Reference in a new issue