File tree Expand file tree Collapse file tree 8 files changed +3
-14
lines changed
commonMain/src/kotlinx/serialization/builtins
commonTest/src/kotlinx/serialization
commonTest/src/kotlinx/serialization
jvmTest/src/kotlinx/serialization/features
json/commonMain/src/kotlinx/serialization/json/internal Expand file tree Collapse file tree 8 files changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,6 @@ public fun Char.Companion.serializer(): KSerializer<Char> = CharSerializer
6161 * Returns serializer for [CharArray] with [descriptor][SerialDescriptor] of [StructureKind.LIST] kind.
6262 * Each element of the array is serialized one by one with [Char.Companion.serializer].
6363 */
64- @Suppress(" UNCHECKED_CAST" )
6564public fun CharArraySerializer (): KSerializer <CharArray > = CharArraySerializer
6665
6766/* *
Original file line number Diff line number Diff line change @@ -198,7 +198,6 @@ class BasicTypesSerializationTest {
198198 // impossible to deserialize Nothing
199199 assertFailsWith(SerializationException ::class , " 'kotlin.Nothing' does not have instances" ) {
200200 val inp = KeyValueInput (Parser (StringReader (" 42" )))
201- @Suppress(" IMPLICIT_NOTHING_TYPE_ARGUMENT_IN_RETURN_POSITION" )
202201 inp.decodeSerializableValue(NothingSerializer ())
203202 }
204203
Original file line number Diff line number Diff line change 11/*
22 * Copyright 2017-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
33 */
4- @file:Suppress(" INLINE_CLASSES_NOT_SUPPORTED" , " SERIALIZER_NOT_FOUND" )
5-
64package kotlinx.serialization.features.inline
75
86import kotlinx.serialization.*
Original file line number Diff line number Diff line change 22 * Copyright 2017-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
33 */
44
5- @file:Suppress(" INLINE_CLASSES_NOT_SUPPORTED" , " SERIALIZER_NOT_FOUND" )
6-
75package kotlinx.serialization.features.inline
86
97import kotlinx.serialization.*
Original file line number Diff line number Diff line change 22 * Copyright 2017-2022 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
33 */
44
5- @file:Suppress(" INVISIBLE_REFERENCE" , " INVISIBLE_MEMBER" )
6-
75package kotlinx.serialization.test
86
97import kotlinx.serialization.*
Original file line number Diff line number Diff line change 22 * Copyright 2017-2022 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
33 */
44
5- @file:Suppress(" INVISIBLE_REFERENCE" , " INVISIBLE_MEMBER" )
6-
75package kotlinx.serialization.features
86
97import kotlinx.serialization.*
108import kotlinx.serialization.builtins.serializer
119import kotlinx.serialization.json.*
12- import kotlinx.serialization.json.internal.BATCH_SIZE
1310import kotlinx.serialization.modules.*
1411import kotlinx.serialization.test.*
1512import org.junit.Test
@@ -19,6 +16,7 @@ import kotlin.test.assertEquals
1916import kotlin.test.assertFailsWith
2017
2118class JsonJvmStreamsTest {
19+ val BATCH_SIZE = 16 * 1024 // kotlinx.serialization.json.internal.BATCH_SIZE
2220 private val strLen = BATCH_SIZE * 2 + 42
2321
2422 @Test
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ private fun toHexChar(i: Int) : Char {
1212 else (d - 10 + ' a' .code).toChar()
1313}
1414
15- @PublishedApi
16- internal val ESCAPE_STRINGS : Array <String ?> = arrayOfNulls<String >(93 ).apply {
15+ @JsonFriendModuleApi
16+ public val ESCAPE_STRINGS : Array <String ?> = arrayOfNulls<String >(93 ).apply {
1717 for (c in 0 .. 0x1f ) {
1818 val c1 = toHexChar(c shr 12 )
1919 val c2 = toHexChar(c shr 8 )
Original file line number Diff line number Diff line change @@ -203,7 +203,6 @@ private open class JsonTreeDecoder(
203203 { (currentElement(tag) as ? JsonPrimitive )?.contentOrNull }
204204 )
205205
206- @Suppress(" INVISIBLE_MEMBER" )
207206 override fun decodeElementIndex (descriptor : SerialDescriptor ): Int {
208207 while (position < descriptor.elementsCount) {
209208 val name = descriptor.getTag(position++ )
You can’t perform that action at this time.
0 commit comments