aboutsummaryrefslogtreecommitdiff
path: root/plugins/kotlin-as-java/src/main/kotlin/jvmName.kt
diff options
context:
space:
mode:
authorMarcin Aman <marcin.aman@gmail.com>2021-08-27 13:45:27 +0200
committerMarcin Aman <marcin.aman@gmail.com>2021-08-27 13:45:27 +0200
commit459a0005824de412ff7d4472c1eb4d6fb7c2a7cc (patch)
tree0ccdbf1d2b5b7e3ad54f70df9284d63a29f058f5 /plugins/kotlin-as-java/src/main/kotlin/jvmName.kt
parent8e1848edfa24acb6b12fad067a6cedbb7be0426b (diff)
downloaddokka-459a0005824de412ff7d4472c1eb4d6fb7c2a7cc.tar.gz
dokka-459a0005824de412ff7d4472c1eb4d6fb7c2a7cc.tar.bz2
dokka-459a0005824de412ff7d4472c1eb4d6fb7c2a7cc.zip
Restore language level to 1.4
Diffstat (limited to 'plugins/kotlin-as-java/src/main/kotlin/jvmName.kt')
-rw-r--r--plugins/kotlin-as-java/src/main/kotlin/jvmName.kt5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/kotlin-as-java/src/main/kotlin/jvmName.kt b/plugins/kotlin-as-java/src/main/kotlin/jvmName.kt
index 53f3430b..44271f2c 100644
--- a/plugins/kotlin-as-java/src/main/kotlin/jvmName.kt
+++ b/plugins/kotlin-as-java/src/main/kotlin/jvmName.kt
@@ -5,12 +5,13 @@ import org.jetbrains.dokka.model.Documentable
import org.jetbrains.dokka.model.StringValue
import org.jetbrains.dokka.model.isJvmName
import org.jetbrains.dokka.model.properties.WithExtraProperties
+import org.jetbrains.kotlin.util.firstNotNullResult
internal fun WithExtraProperties<out Documentable>.directlyAnnotatedJvmName(): Annotations.Annotation? =
- extra[Annotations]?.directAnnotations?.entries?.firstNotNullOfOrNull { (_, annotations)-> annotations.jvmNameAnnotation() }
+ extra[Annotations]?.directAnnotations?.entries?.firstNotNullResult { (_, annotations)-> annotations.jvmNameAnnotation() }
internal fun WithExtraProperties<out Documentable>.fileLevelJvmName(): Annotations.Annotation? =
- extra[Annotations]?.fileLevelAnnotations?.entries?.firstNotNullOfOrNull { (_, annotations) -> annotations.jvmNameAnnotation() }
+ extra[Annotations]?.fileLevelAnnotations?.entries?.firstNotNullResult { (_, annotations) -> annotations.jvmNameAnnotation() }
internal fun List<Annotations.Annotation>.jvmNameAnnotation(): Annotations.Annotation? =
firstOrNull { it.isJvmName() }