``` interface SwitchMessageConverterKotlin<T&gt...
# announcements
j
Copy code
interface SwitchMessageConverterKotlin<T>  {
    val supportedType: Class<T>
        get() = supportedKlass.java

    val supportedKlass: KClass<T> // Anyone know why the compiler complains about this `T`?
}
i
The type parameter of
KClass
is constrained to be non-nullable type. You need to add constraint
T : Any