epool
08/20/2018, 6:53 PMclassLoaders: Array<out ClassLoader>?
when *classLoaders
is passed as parameter
val classLoaders = reflections.configuration.classLoaders // Array<out ClassLoader>?
ReflectionUtils.forNames<Any>(reflections.allTypes, *classLoaders)
Andreas Sinz
08/20/2018, 7:01 PMepool
08/20/2018, 7:24 PMpavel
08/20/2018, 7:54 PM*
operator which only works with non-null arraysclassLoaders: Array<out ClassLoader>?
you would’ve gotten a compilation error there insteadpoohbar
08/20/2018, 8:17 PMpavel
08/20/2018, 8:30 PMSystem.IO.Unsafe
karelpeeters
08/20/2018, 9:43 PMpoohbar
08/21/2018, 12:10 PMstay withing KotlinHow many real-world projects can get away with not using Java?
epool
08/21/2018, 4:00 PMreflections.configuration.classLoaders
is annotated with a @javax.annotation.Nullable
return type, I thought this could be inferred.pavel
08/21/2018, 5:50 PM@Nonnull
is supported@Nullable
isn’tepool
08/21/2018, 5:58 PMAndreas Sinz
08/22/2018, 12:46 PMpoohbar
08/22/2018, 12:47 PMAndreas Sinz
08/22/2018, 12:48 PMpoohbar
08/22/2018, 12:49 PMkarelpeeters
08/22/2018, 1:07 PM