aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/utilities
diff options
context:
space:
mode:
authoreunwoo-park <eeunwoop@gmail.com>2023-07-13 00:12:23 +0900
committerGitHub <noreply@github.com>2023-07-12 17:12:23 +0200
commit20e06e878ebbe09865ff36d64ff113fd4cff8905 (patch)
treebf43970f6bf53508af5bac36500c97f92bdbefa1 /core/src/main/kotlin/utilities
parent54decbe937ddcb0e3a8922babdc5f1d805fd42c0 (diff)
downloaddokka-20e06e878ebbe09865ff36d64ff113fd4cff8905.tar.gz
dokka-20e06e878ebbe09865ff36d64ff113fd4cff8905.tar.bz2
dokka-20e06e878ebbe09865ff36d64ff113fd4cff8905.zip
Deserialize DokkaConfiguration's Set as LinkedHashSet (#3006)
Fixes #2999 Helps preserve order of Set elements. Co-authored-by: 박은우/게임플랫폼클라팀/NE <eunwoo.park@nhn.com>
Diffstat (limited to 'core/src/main/kotlin/utilities')
-rw-r--r--core/src/main/kotlin/utilities/json.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/main/kotlin/utilities/json.kt b/core/src/main/kotlin/utilities/json.kt
index eb666d31..c082de2c 100644
--- a/core/src/main/kotlin/utilities/json.kt
+++ b/core/src/main/kotlin/utilities/json.kt
@@ -13,6 +13,7 @@ import com.fasterxml.jackson.core.type.TypeReference as JacksonTypeReference
private val objectMapper = run {
val module = SimpleModule().apply {
addSerializer(FileSerializer)
+ addAbstractTypeMapping(Set::class.java, LinkedHashSet::class.java)
}
jacksonObjectMapper()
.registerModule(module)