Yelp / parcelgen

Helpful tool to make data objects easier for Android
Other
65 stars 35 forks source link

don’t use readBundle(), but readBundle(ClassLoader) #44

Closed raducom closed 8 years ago

raducom commented 8 years ago

This will fix the following Lint warning:

{{/Users/cjackson/src/biz-app/YelpBiz/src/main/java/com/yelp/android/biz/serializable/_BusinessAttributeData.java:59: Error: Using the default class loader will not work if you are restoring your own classes. Consider using for example readBundle(getClass().getClassLoader()) instead. [ParcelClassLoader] mAttributesBoolChoice = JsonUtil.fromBundle(source.readBundle(), BoolAttributeChoice.class);