From ff5aa6721063599d8b68a245c482621b0d110fc6 Mon Sep 17 00:00:00 2001 From: Vsevolod Tolstopyatov Date: Tue, 21 Mar 2023 06:48:22 -0700 Subject: 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 --- core/src/main/kotlin/utilities/safeEnumValueOf.kt | 4 ---- 1 file changed, 4 deletions(-) delete mode 100644 core/src/main/kotlin/utilities/safeEnumValueOf.kt (limited to 'core/src') 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 > enumValueOrNull(name: String): T? = - T::class.java.enumConstants.firstOrNull { it.name.equals(name, ignoreCase = true) } \ No newline at end of file -- cgit