From 6a642ec58bacaae04598cd4524f0fd07df80c6d9 Mon Sep 17 00:00:00 2001 From: gyumin Date: Mon, 15 Feb 2021 11:49:35 +0000 Subject: [PATCH] Generalize exception thrown by fromBundle It allows Bundleable classes throw a RuntimeException which is broader than IAE. Now, Bundleable implementation may utilize checkNotNull for brevity. PiperOrigin-RevId: 357546375 --- .../src/main/java/com/google/android/exoplayer2/Bundleable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/common/src/main/java/com/google/android/exoplayer2/Bundleable.java b/library/common/src/main/java/com/google/android/exoplayer2/Bundleable.java index 7561877c5e..fe3227d0f1 100644 --- a/library/common/src/main/java/com/google/android/exoplayer2/Bundleable.java +++ b/library/common/src/main/java/com/google/android/exoplayer2/Bundleable.java @@ -64,7 +64,7 @@ public interface Bundleable { * *

It guarantees the compatibility of {@link Bundle} representations produced by different * versions of {@link Bundleable#toBundle()} by providing best default values for missing - * fields. It may throw an {@link IllegalArgumentException} if any essential fields are missing. + * fields. It throws an exception if any essential fields are missing. */ T fromBundle(Bundle bundle); }