diff options
author | Kamil Doległo <9080183+kamildoleglo@users.noreply.github.com> | 2021-04-06 15:34:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-06 15:34:39 +0200 |
commit | 6b2e9382a298045c1d3c39bdb3c33cdc0eebf38d (patch) | |
tree | 978d2cac1d7cd91f322fff2da8186797aadde5b9 /plugins/kotlin-as-java/src/main/kotlin/signatures/JavaSignatureProvider.kt | |
parent | 6756bad5e9d5ebd996275e17bc3ea4f07aea54f4 (diff) | |
download | dokka-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.kt | 10 |
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()) |