@@ -33,6 +33,7 @@ import org.jetbrains.kotlin.resolve.jvm.jvmSignature.JvmMethodSignature
33
33
import org.jetbrains.kotlin.codegen.FunctionGenerationStrategy.CodegenBased
34
34
import org.jetbrains.kotlin.codegen.OwnerKind
35
35
import org.jetbrains.kotlin.codegen.context.ClassContext
36
+ import org.jetbrains.kotlin.codegen.coroutines.UninitializedStoresProcessor
36
37
import org.jetbrains.kotlin.codegen.writeSyntheticClassMetadata
37
38
import org.jetbrains.kotlin.descriptors.impl.ClassDescriptorImpl
38
39
import org.jetbrains.kotlin.incremental.components.NoLookupLocation
@@ -100,6 +101,8 @@ open class ParcelableCodegenExtension : ExpressionCodegenExtension {
100
101
val containerAsmType = codegen.typeMapper.mapType(this .defaultType)
101
102
102
103
return findFunction(WRITE_TO_PARCEL )?.write(codegen) {
104
+ v.visitAnnotation(UninitializedStoresProcessor .AVOID_UNINITIALIZED_OBJECT_COPYING_CHECK_ANNOTATION_DESCRIPTOR , false )
105
+
103
106
if (parcelerObject != null ) {
104
107
val (companionAsmType, companionFieldName) = getCompanionClassType(containerAsmType, parcelerObject)
105
108
@@ -178,6 +181,8 @@ open class ParcelableCodegenExtension : ExpressionCodegenExtension {
178
181
val containerAsmType = codegen.typeMapper.mapType(parcelableClass)
179
182
180
183
createMethod(creatorClass, CREATE_FROM_PARCEL , parcelableClass.builtIns.anyType, " in" to parcelClassType).write(codegen) {
184
+ v.visitAnnotation(UninitializedStoresProcessor .AVOID_UNINITIALIZED_OBJECT_COPYING_CHECK_ANNOTATION_DESCRIPTOR , false )
185
+
181
186
if (parcelerObject != null ) {
182
187
val (companionAsmType, companionFieldName) = getCompanionClassType(containerAsmType, parcelerObject)
183
188
0 commit comments