From b29a136721e28e0d6ca5c39d9180020e444b9d30 Mon Sep 17 00:00:00 2001 From: "sebastian.sellmair" Date: Wed, 12 Aug 2020 14:42:17 +0200 Subject: toDokkaSourceSetImpl: Use `getSafe` instead of `get` everywhere --- .../main/kotlin/org/jetbrains/dokka/gradle/toDokkaSourceSetImpl.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runners/gradle-plugin/src/main/kotlin/org') diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/toDokkaSourceSetImpl.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/toDokkaSourceSetImpl.kt index c815a8a3..8a944837 100644 --- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/toDokkaSourceSetImpl.kt +++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/toDokkaSourceSetImpl.kt @@ -11,7 +11,7 @@ internal fun GradleDokkaSourceSetBuilder.toDokkaSourceSetImpl(): DokkaSourceSetI displayName = displayNameOrDefault(), sourceSetID = sourceSetID, sourceRoots = sourceRoots.toSet(), - dependentSourceSets = dependentSourceSets.get().toSet(), + dependentSourceSets = dependentSourceSets.getSafe().toSet(), samples = samples.toSet(), includes = includes.toSet(), includeNonPublic = includeNonPublic.getSafe(), @@ -47,7 +47,7 @@ private fun GradleDokkaSourceSetBuilder.displayNameOrDefault(): String { private fun GradleDokkaSourceSetBuilder.externalDocumentationLinksWithDefaults(): Set { return externalDocumentationLinks.getSafe().build() .run { - if (noJdkLink.get()) this + if (noJdkLink.getSafe()) this else this + ExternalDocumentationLink.jdk(jdkVersion.getSafe()) } .run { -- cgit