aboutsummaryrefslogtreecommitdiff
path: root/runners/gradle-plugin/src/main/kotlin/org
diff options
context:
space:
mode:
authorsebastian.sellmair <sebastian.sellmair@jetbrains.com>2020-08-12 14:42:17 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-08-14 17:51:11 +0200
commitb29a136721e28e0d6ca5c39d9180020e444b9d30 (patch)
treec39d82d3ee14959a4ad3fd6fe4af96c8b83e5947 /runners/gradle-plugin/src/main/kotlin/org
parent03ea4d233b51cf90b5028586355e0311151b6780 (diff)
downloaddokka-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')
-rw-r--r--runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/toDokkaSourceSetImpl.kt4
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 {