What's the difference between java and javaObjectT...
# squarelibraries
d
What's the difference between java and javaObjectType on KClass? I need to use this type for getting Moshi's converter, is there any preference? Like
moshi.adapter<Any>(type.javaObjectType)
.
e
I think you can tell from the source what the difference is. They are mostly the same for all objects and may differ only when dealing with primitive types or not.
d
So no real difference when working with Moshi?
e
I’d advice you use the
.java
one. I cant think of any usecases where I’ve needed the other one
d
Ok thanks 👍🏼
e
you need the .javaObjectType when you want a Boolean.class instead of boolean.class for example
👍 2