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:
parent
8a084daaff
commit
6a642ec58b
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user