Is there a way to force primitive types like `Long...
# announcements
m
Is there a way to force primitive types like
Long::class.java
to not be treaded as primitives but as objects? Currently I cannot make Moshi work with these types.
Copy code
Types.newParameterizedType(Map::class.java, Long::class.java, String::class.java)
Copy code
java.lang.IllegalArgumentException
at com.squareup.moshi.Types.checkNotPrimitive(Types.java:496)
at com.squareup.moshi.Types$ParameterizedTypeImpl.<init>(Types.java:518)
at com.squareup.moshi.Types.newParameterizedType(Types.java:75)