Mastodon

Kotlin  —  19 posts

A Closer Look At Moshi 1.9

Zac Sweers Profile Image
Zac Sweers

Moshi 1.9 is here! It's been in the oven for a year and excited to have it out there. This post takes a closer look at its changes.

@JvmDefault: More Useful Than You Think Feature Image

@JvmDefault: More Useful Than You Think

Zac Sweers Profile Image
Zac Sweers

@JvmDefault is an annotation + compiler flag in Kotlin to enable using Java 8 default interface methods. It does more than it leads on though! This post explores some other bytecode optimizations you can gain with it as well as some hidden behaviors you should be aware of.