level 3
JakeWharton
Head of sales at Bob's Discount ActionBars
1 point·6 years ago
Serializable is like a tattoo. You are committing to a class name, package, and field structure forever. The only way to "remove" it is epic deserialization hacks.
Yes using it in an Intent isn't much harm, but if you use serialization there's a potential for crashing your app. They upgrade, hit your icon on the launcher, and Android tries to restore the previous Intent for where they were at in your app. You changed the object so deserialization fails and the app crashes. Not a good upgrade experience. Granted this is rare, but if you ever persist something to disk like this it can leave you in an extremely bad place.
Отличный холивар. Благодаря которому я узнал вот этот нюанс сериализации)