aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/translators/psi
diff options
context:
space:
mode:
authorIgnat Beresnev <ignat.beresnev@jetbrains.com>2022-08-17 14:35:45 +0200
committerGitHub <noreply@github.com>2022-08-17 14:35:45 +0200
commit19eaf4c56b124a355c87d93a90745f610043624b (patch)
tree39d5d2b6a85a3a619b17b3d99d8b48d2cb0a3ba0 /plugins/base/src/main/kotlin/translators/psi
parentd755694746b877b0051b886e4ac05bd428bee429 (diff)
downloaddokka-19eaf4c56b124a355c87d93a90745f610043624b.tar.gz
dokka-19eaf4c56b124a355c87d93a90745f610043624b.tar.bz2
dokka-19eaf4c56b124a355c87d93a90745f610043624b.zip
Add missing java primitives to annotation constant params parsing (#2610)
Diffstat (limited to 'plugins/base/src/main/kotlin/translators/psi')
-rw-r--r--plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt b/plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt
index a58e1b83..d98559e5 100644
--- a/plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt
+++ b/plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt
@@ -710,6 +710,9 @@ class DefaultPsiToDocumentableTranslator(
}
private fun Any.toAnnotationLiteralValue() = when (this) {
+ is Byte -> IntValue(this.toInt())
+ is Short -> IntValue(this.toInt())
+ is Char -> StringValue(this.toString())
is Int -> IntValue(this)
is Long -> LongValue(this)
is Boolean -> BooleanValue(this)