From 77fb0ddd329cf9d6174a17c16f0eb3868842a8b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steven=20Sch=C3=A4fer?= Date: Mon, 20 Jul 2020 16:07:43 +0200 Subject: [PATCH] Parcelize: Update test expectations --- .../parcel/codegen/customParcelablesSameModule.ir.txt | 5 ++--- .../testData/parcel/codegen/customSimple.ir.txt | 3 ++- .../testData/parcel/codegen/size.ir.txt | 4 +--- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/customParcelablesSameModule.ir.txt b/plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/customParcelablesSameModule.ir.txt index 4c8c7378be2..414b0ada937 100644 --- a/plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/customParcelablesSameModule.ir.txt +++ b/plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/customParcelablesSameModule.ir.txt @@ -18,14 +18,13 @@ public final class k/KotlinParcelable$Creator : java/lang/Object, android/os/Par INVOKEVIRTUAL (android/os/Parcel, readInt, ()I) ISTORE (2) LABEL (L2) + LINENUMBER (24) NEW DUP - LABEL (L3) - LINENUMBER (24) ILOAD (2) INVOKESPECIAL (k/KotlinParcelable, , (I)V) ARETURN - LABEL (L4) + LABEL (L3) } public java.lang.Object createFromParcel(android.os.Parcel p0) { diff --git a/plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/customSimple.ir.txt b/plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/customSimple.ir.txt index 5e71c2bc918..fc750d9a390 100644 --- a/plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/customSimple.ir.txt +++ b/plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/customSimple.ir.txt @@ -9,6 +9,7 @@ final class User$Companion : java/lang/Object, kotlinx/android/parcel/Parceler { public User[] newArray(int size) { LABEL (L0) + LINENUMBER (10) ALOAD (0) ILOAD (1) INVOKESTATIC (kotlinx/android/parcel/Parceler$DefaultImpls, newArray, (Lkotlinx/android/parcel/Parceler;I)[Ljava/lang/Object;) @@ -111,4 +112,4 @@ public final class User : java/lang/Object, android/os/Parcelable { RETURN LABEL (L1) } -} +} \ No newline at end of file diff --git a/plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/size.ir.txt b/plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/size.ir.txt index 4f579d00755..12452a6b9d9 100644 --- a/plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/size.ir.txt +++ b/plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/size.ir.txt @@ -15,7 +15,6 @@ public final class Test$Creator : java/lang/Object, android/os/Parcelable$Creato INVOKEVIRTUAL (android/os/Parcel, readInt, ()I) IFNE (L2) ACONST_NULL - CHECKCAST GOTO (L3) LABEL (L2) ALOAD (1) @@ -119,7 +118,6 @@ public final class TestF$Creator : java/lang/Object, android/os/Parcelable$Creat INVOKEVIRTUAL (android/os/Parcel, readInt, ()I) IFNE (L2) ACONST_NULL - CHECKCAST GOTO (L3) LABEL (L2) ALOAD (1) @@ -204,4 +202,4 @@ public final class TestF : java/lang/Object, android/os/Parcelable { RETURN LABEL (L3) } -} +} \ No newline at end of file