@Test(expected = BadBundleableException.class) public void testWrongClassThrows() throws Exception { TestBundleable t = new TestBundleable("alice", 32); Bundle b = t.toBundle(); BundleableUtil.materializeBundle("org.opensilk.Foo", b); }
@NonNull public static <T extends Bundleable> T materializeBundle(Bundle b) throws BadBundleableException { return materializeBundle(b.getString(Bundleable.CLZ), b); }
BundleableUtil { @NonNull public static <T extends Bundleable> T materializeBundle(Bundle b) throws BadBundleableException { return materializeBundle(b.getString(Bundleable.CLZ), b); } }
BundleableUtil { @NonNull public static <T extends Bundleable> T materializeBundle(Bundle b) throws BadBundleableException { return materializeBundle(b.getString(Bundleable.CLZ), b); }  }
BundleableUtil { @NonNull public static <T extends Bundleable> T materializeBundle(Bundle b) throws BadBundleableException { return materializeBundle(b.getString(Bundleable.CLZ), b); }  @NonNull static T materializeBundle(Bundle b); @NonNull @SuppressWarnings("unchecked") static T materializeBundle(Class<T> cls, Bundle b); @NonNull @SuppressWarnings("unchecked") static T materializeBundle(String name, Bundle b); }
BundleableUtil { @NonNull public static <T extends Bundleable> T materializeBundle(Bundle b) throws BadBundleableException { return materializeBundle(b.getString(Bundleable.CLZ), b); }  @NonNull static T materializeBundle(Bundle b); @NonNull @SuppressWarnings("unchecked") static T materializeBundle(Class<T> cls, Bundle b); @NonNull @SuppressWarnings("unchecked") static T materializeBundle(String name, Bundle b);  }