Commit 6a642ec5 by gyumin Committed by kim-vde

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
parent 8a084daa
...@@ -64,7 +64,7 @@ public interface Bundleable { ...@@ -64,7 +64,7 @@ public interface Bundleable {
* *
* <p>It guarantees the compatibility of {@link Bundle} representations produced by different * <p>It guarantees the compatibility of {@link Bundle} representations produced by different
* versions of {@link Bundleable#toBundle()} by providing best default values for missing * 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); T fromBundle(Bundle bundle);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment