var setterVisibility: String = "abc"
private set // the setter is private and has the default implementation
var setterWithAnnotation: Any? = null
@Inject set // annotate the setter with Inject
I know how to do it already, I’ve been using Kotlin for years. My post is a request to JetBrains for a slight improvement to Java interop - there are a lot of frameworks where they really want to annotate properties, but JavaBeans are the closest they have so they expect you to annotate the getter method instead (note, getter not setter). This can be done in Kotlin, it’s just ugly, and needlessly so.