Join Slack
Powered by
I’m in the process of migrating a bunch of Java AP...
# intellij
j
jessewilson
11/27/2018, 6:23 PM
I’m in the process of migrating a bunch of Java APIs that have static methods to Kotlin. My preferred way to do this is to make them companions on the extension function ’cause that lets us use the same API from Java and Kotlin. Stuff like this:
https://github.com/square/okio/blob/master/okio/src/main/kotlin/okio/ByteString.kt#L137
Open in Slack
Previous
Next