I'm working on the Android Library which I'm devel...
# announcements
s
I'm working on the Android Library which I'm developing in Kotlin. I defined class with modifier
internal
which is hiding that class in Kotlin code. But it's publically visible in Java. How can I avoid that?
z
You can give it a
@JvmName
which is not expressible in Java (eg containing a dash). I think you can also mark it as
@JvmSynthetic
, but I'm not sure what other side effects that has.
s
Can I apply these annotations to Class?
z
JvmName
yes,
JvmSynthetic
is only functions
s
Ok thanks