diff options
author | sebastian.sellmair <sebastian.sellmair@jetbrains.com> | 2020-08-12 14:42:17 +0200 |
---|---|---|
committer | Sebastian Sellmair <34319766+sellmair@users.noreply.github.com> | 2020-08-14 17:51:11 +0200 |
commit | b29a136721e28e0d6ca5c39d9180020e444b9d30 (patch) | |
tree | c39d82d3ee14959a4ad3fd6fe4af96c8b83e5947 /runners/gradle-plugin/src/main/kotlin/org/jetbrains | |
parent | 03ea4d233b51cf90b5028586355e0311151b6780 (diff) | |
download | dokka-b29a136721e28e0d6ca5c39d9180020e444b9d30.tar.gz dokka-b29a136721e28e0d6ca5c39d9180020e444b9d30.tar.bz2 dokka-b29a136721e28e0d6ca5c39d9180020e444b9d30.zip |
toDokkaSourceSetImpl: Use `getSafe` instead of `get` everywhere
Diffstat (limited to 'runners/gradle-plugin/src/main/kotlin/org/jetbrains')
-rw-r--r-- | runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/toDokkaSourceSetImpl.kt | 4 |
1 files changed, 2 insertions, 2 deletions
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<ExternalDocumentationLinkImpl> { return externalDocumentationLinks.getSafe().build() .run { - if (noJdkLink.get()) this + if (noJdkLink.getSafe()) this else this + ExternalDocumentationLink.jdk(jdkVersion.getSafe()) } .run { |