why in Java I can write @Api(tags = "Auth") but in...
# announcements
r
why in Java I can write @Api(tags = "Auth") but in Kotlin I must write @Api(tags = arrayOf("Auth"))
v
Kotlin 1..2 has
@Api(tags = ["Auth"])
, cheer up
r
why not to do the same like in Java?
e
Kotlin’s spirit is to be explicit and to avoid implicit conversions. Passing a string where an array is expected is too implicit for Kotlin’s taste
p
@voddan could you do this with
@Component( java classes)
1