File tree 2 files changed +2
-6
lines changed
commonMain/src/kotlinx/serialization/protobuf/internal
commonTest/src/kotlinx/serialization/protobuf
2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -391,9 +391,7 @@ private class OneOfPolymorphicReader(
391
391
override fun decodeTaggedString (tag : ProtoDesc ): String = if (tag == POLYMORPHIC_NAME_TAG ) {
392
392
// todo return a serial name for polymorphic serializer
393
393
descriptor.getActualOneOfSerializer(parentTag.protoId)?.serialName ? : throw SerializationException (
394
- " Cannot find a subclass of ${descriptor.serialName} in property \" ${
395
- descriptor.serialName
396
- } \" annotated with @ProtoNumber(${parentTag.protoId} )."
394
+ " Cannot find a subclass of ${descriptor.serialName} annotated with @ProtoNumber(${parentTag.protoId} )."
397
395
)
398
396
} else {
399
397
super .decodeTaggedString(tag)
Original file line number Diff line number Diff line change @@ -367,9 +367,7 @@ class ProtobufOneOfTest {
367
367
368
368
@Test
369
369
fun testFailWithClassDecoding () {
370
- assertFailsWith<SerializationException >(
371
- " Cannot find a subclass of kotlinx.serialization.protobuf.ProtobufOneOfTest.IFailType in property \" i\" annotated with @ProtoNumber(1)."
372
- ) {
370
+ assertFailsWith<SerializationException > {
373
371
ProtoBuf .decodeFromHexString<FailWithClass >(
374
372
" 082a1a03666f6f"
375
373
)
You can’t perform that action at this time.
0 commit comments