Parcelable: Use the Parcelable implementation class as a containing declaration for Creator (KT-19899)

This commit is contained in:
Yan Zhulanow
2017-08-24 18:40:24 +03:00
committed by Yan Zhulanow
parent f8ca714c45
commit e645da64da
4 changed files with 43 additions and 6 deletions
@@ -1,4 +1,5 @@
// CURIOUS_ABOUT writeToParcel, createFromParcel, <clinit>, describeContents
// LOCAL_VARIABLES_TABLE
import kotlinx.android.parcel.*
import android.os.Parcelable
@@ -19,6 +19,10 @@ public static class User$Creator : java/lang/Object, android/os/Parcelable$Creat
INVOKESPECIAL (User, <init>, (Ljava/lang/String;Ljava/lang/String;IZ)V)
ARETURN
LABEL (L1)
Local variables:
this: LUser$Creator;
in: Landroid/os/Parcel;
}
public final User[] newArray(int p0)
@@ -50,6 +54,9 @@ public final class User : java/lang/Object, android/os/Parcelable {
LDC (0)
IRETURN
LABEL (L1)
Local variables:
this: LUser;
}
public final int getAge()
@@ -83,5 +90,10 @@ public final class User : java/lang/Object, android/os/Parcelable {
INVOKEVIRTUAL (android/os/Parcel, writeInt, (I)V)
RETURN
LABEL (L1)
Local variables:
this: LUser;
parcel: Landroid/os/Parcel;
flags: I
}
}