Faster startup avoiding unnecessary class loading
This commit is contained in:
committed by
Vladimir Dolzhenko
parent
f7d0be980b
commit
c853ae49a2
@@ -25,7 +25,7 @@ class KotlinPathsFromHomeDir(
|
||||
) : KotlinPathsFromBaseDirectory(File(homePath, "lib")) {
|
||||
|
||||
// TODO: extend when needed
|
||||
val libsWithSources = setOf(KotlinPaths.Jar.StdLib, KotlinPaths.Jar.JsStdLib)
|
||||
val libsWithSources: Set<KotlinPaths.Jar> by lazy { setOf(KotlinPaths.Jar.StdLib, KotlinPaths.Jar.JsStdLib) }
|
||||
|
||||
override fun sourcesJar(jar: KotlinPaths.Jar): File? = if (jar in libsWithSources) super.sourcesJar(jar) else null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user