Effective Kotlin: Serialization

Let’s see how we can apply Joshua Bloch’s Effective Java in the Kotlin world. Today’s topic is Serialization.

Item 85: Prefer alternatives to Java serialization

There is nothing special in Kotlin for this item.

Item 86: Implement Serializable with great caution

There is nothing special in Kotlin for this item.

Item 87: Consider using a custom serialized form

There is nothing special in Kotlin for this item.

Item 88: Write readObject methods defensively

There is nothing special in Kotlin for this item.

Item 89: For instance control, prefer enum types to readResolve

There is nothing special in Kotlin for this item.

Item 90: Consider serialization proxies instead of serialized instance

There is nothing special in Kotlin for this item.


See also

comments powered by Disqus