aboutsummaryrefslogtreecommitdiff
path: root/plugins/kotlin-as-java/src/main/kotlin/signatures/JavaSignatureProvider.kt
diff options
context:
space:
mode:
authorKamil Doległo <9080183+kamildoleglo@users.noreply.github.com>2021-04-06 15:34:39 +0200
committerGitHub <noreply@github.com>2021-04-06 15:34:39 +0200
commit6b2e9382a298045c1d3c39bdb3c33cdc0eebf38d (patch)
tree978d2cac1d7cd91f322fff2da8186797aadde5b9 /plugins/kotlin-as-java/src/main/kotlin/signatures/JavaSignatureProvider.kt
parent6756bad5e9d5ebd996275e17bc3ea4f07aea54f4 (diff)
downloaddokka-6b2e9382a298045c1d3c39bdb3c33cdc0eebf38d.tar.gz
dokka-6b2e9382a298045c1d3c39bdb3c33cdc0eebf38d.tar.bz2
dokka-6b2e9382a298045c1d3c39bdb3c33cdc0eebf38d.zip
Fix some compiler warnings (#1812)
Diffstat (limited to 'plugins/kotlin-as-java/src/main/kotlin/signatures/JavaSignatureProvider.kt')
-rw-r--r--plugins/kotlin-as-java/src/main/kotlin/signatures/JavaSignatureProvider.kt10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/kotlin-as-java/src/main/kotlin/signatures/JavaSignatureProvider.kt b/plugins/kotlin-as-java/src/main/kotlin/signatures/JavaSignatureProvider.kt
index fd40366f..f51a9edd 100644
--- a/plugins/kotlin-as-java/src/main/kotlin/signatures/JavaSignatureProvider.kt
+++ b/plugins/kotlin-as-java/src/main/kotlin/signatures/JavaSignatureProvider.kt
@@ -116,16 +116,16 @@ class JavaSignatureProvider internal constructor(ctcc: CommentsToContentConverte
}
private fun signature(f: DFunction) =
- f.sourceSets.map {
+ f.sourceSets.map { sourceSet ->
contentBuilder.contentFor(
f,
ContentKind.Symbol,
- setOf(TextStyle.Monospace, TextStyle.Block) + f.stylesIfDeprecated(it),
- sourceSets = setOf(it)
+ setOf(TextStyle.Monospace, TextStyle.Block) + f.stylesIfDeprecated(sourceSet),
+ sourceSets = setOf(sourceSet)
) {
annotationsBlock(f)
- text(f.modifier[it]?.takeIf { it !in ignoredModifiers }?.name?.plus(" ") ?: "")
- text(f.modifiers()[it]?.toSignatureString() ?: "")
+ text(f.modifier[sourceSet]?.takeIf { it !in ignoredModifiers }?.name?.plus(" ") ?: "")
+ text(f.modifiers()[sourceSet]?.toSignatureString() ?: "")
val returnType = f.type
signatureForProjection(returnType)
text(nbsp.toString())