aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorVsevolod Tolstopyatov <qwwdfsad@gmail.com>2023-03-21 06:48:22 -0700
committerGitHub <noreply@github.com>2023-03-21 16:48:22 +0300
commitff5aa6721063599d8b68a245c482621b0d110fc6 (patch)
tree49b6a876ec0793a86ccd9c0e5284038072cea6b3 /core
parente66f9d8711b5c1ba5e75fdcde8cfe998042c294a (diff)
downloaddokka-ff5aa6721063599d8b68a245c482621b0d110fc6.tar.gz
dokka-ff5aa6721063599d8b68a245c482621b0d110fc6.tar.bz2
dokka-ff5aa6721063599d8b68a245c482621b0d110fc6.zip
Improve JavadocParser and fix case-sensitivity (#2905)
* Get rid of safeEnumValueOf that was an unnecessary public API burden and constantly allocating * Restructure JavadocParser.parseDocTag, so it has one lever of nesting less * Make tag parsing case-sensitive Fixes #2907
Diffstat (limited to 'core')
-rw-r--r--core/src/main/kotlin/utilities/safeEnumValueOf.kt4
1 files changed, 0 insertions, 4 deletions
diff --git a/core/src/main/kotlin/utilities/safeEnumValueOf.kt b/core/src/main/kotlin/utilities/safeEnumValueOf.kt
deleted file mode 100644
index 9f4c23c9..00000000
--- a/core/src/main/kotlin/utilities/safeEnumValueOf.kt
+++ /dev/null
@@ -1,4 +0,0 @@
-package org.jetbrains.dokka.utilities
-
-inline fun <reified T : Enum<*>> enumValueOrNull(name: String): T? =
- T::class.java.enumConstants.firstOrNull { it.name.equals(name, ignoreCase = true) } \ No newline at end of file