Scenario 1 When I Dagger Modules Annotation as below from Java to Kotlin
@Module(includes = {AModule.class, XModule.class})
It changes to
@Module(includes = [AModule::class, XModule::class])
Scenario 2 However when I convert the below
Class<?>[] classArray = {AModule.class, XModule.class};
It changes to
val classArray = arrayOf(AModule::class.java, XModule::class.java)
Question
Why does the conversion of {AModule.class, XModule.class} differ in the above 2 scenarios, where one is using [], and the other is using arrayOf instead?