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
This commit is contained in:
gyumin 2021-02-15 11:49:35 +00:00 committed by kim-vde
parent 8a084daaff
commit 6a642ec58b

View File

@ -64,7 +64,7 @@ public interface Bundleable {
*
* <p>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);
}