Joe
03/09/2022, 4:26 PMClass
instance in kotlin that is equal to void.class
in java? Unit::class.java
doesn't do it:
>>> System.out::class.java.methods.first {it.name == "println"}.returnType == Unit::class.java
res1: kotlin.Boolean = false
(I'm using bytebuddy to dynamically generate a method and need it to be declared void
to be used properly by some jersey code)Joe
03/09/2022, 4:30 PMephemient
03/09/2022, 7:31 PMNothing::class.javaPrimitiveType
Joe
03/09/2022, 7:34 PMNothing::class.javaPrimitiveType
vs Void.TYPE
?