Fix space overflow bug in ReflectionTool

This commit is contained in:
2022-09-13 02:09:08 +08:00
parent 74bb420947
commit ed408fd0f2

View File

@@ -373,8 +373,8 @@ internal object ReflectionTool {
instanceSet, name = "Field",
"name:[${name.takeIf { it.isNotBlank() } ?: "unspecified"}]",
nameConditions?.let { "nameConditions:$it" } ?: "",
"type:[${type ?: "unspecified"}] ",
"modifiers:${modifiers ?: "[]"} ",
"type:[${type ?: "unspecified"}]",
"modifiers:${modifiers ?: "[]"}",
orderIndex?.let { it.takeIf { it.second }?.let { e -> "orderIndex:[${e.first}]" } ?: "orderIndex:[last]" } ?: "",
matchIndex?.let { it.takeIf { it.second }?.let { e -> "matchIndex:[${e.first}]" } ?: "matchIndex:[last]" } ?: ""
)