カラム設定が保存されない問題の修正

This commit is contained in:
tateisu 2021-11-15 13:09:54 +09:00
parent ca1c5b85d9
commit 82014cbf6e
1 changed files with 4 additions and 3 deletions

View File

@ -12,7 +12,7 @@ class JsonException : RuntimeException {
private const val CHAR0 = '\u0000'
private val reDecimal ="""(?:\A\-0\z)|[.eE]""".toRegex()
private val reDecimal = """(?:\A\-0\z)|[.eE]""".toRegex()
// Tests if the value should be tried as a decimal.
// It makes no test if there are actual digits.
@ -289,8 +289,9 @@ class JsonObject : LinkedHashMap<String, Any?>() {
if (value != defVal) put(key, value)
}
fun putIfTrue(key: String, value: Boolean) =
putIfNotDefault(key, value, true)
fun putIfTrue(key: String, value: Boolean) {
if (value) put(key, value)
}
}
class JsonTokenizer(reader: Reader) {