Parcelable, minor: Rename MagicParcel to Parcelize

This commit is contained in:
Yan Zhulanow
2017-07-26 17:57:22 +03:00
parent f29cf07fa4
commit ea1068a822
51 changed files with 102 additions and 102 deletions
@@ -1,31 +1,31 @@
package test
import kotlinx.android.parcel.MagicParcel
import kotlinx.android.parcel.Parcelize
import android.os.Parcelable
@MagicParcel
@Parcelize
open class Open(val foo: String) : Parcelable
@MagicParcel
@Parcelize
class Final(val foo: String) : Parcelable
@MagicParcel
@Parcelize
<error descr="[PARCELABLE_SHOULD_BE_INSTANTIABLE] 'Parcelable' should not be a 'sealed' or 'abstract' class">abstract</error> class Abstract(val foo: String) : Parcelable
@MagicParcel
@Parcelize
<error descr="[PARCELABLE_SHOULD_BE_INSTANTIABLE] 'Parcelable' should not be a 'sealed' or 'abstract' class">sealed</error> class Sealed(val foo: String) : Parcelable {
class X : Sealed("")
}
class Outer {
@MagicParcel
@Parcelize
<error descr="[PARCELABLE_CANT_BE_INNER_CLASS] 'Parcelable' can't be an inner class">inner</error> class Inner(val foo: String) : Parcelable
}
fun foo() {
@MagicParcel
@Parcelize
<error descr="[PARCELABLE_SHOULD_BE_CLASS] 'Parcelable' should be a class">object</error> : Parcelable {}
@MagicParcel
@Parcelize
class <error descr="[NO_PARCELABLE_SUPERTYPE] No 'Parcelable' supertype"><error descr="[PARCELABLE_CANT_BE_LOCAL_CLASS] 'Parcelable' can't be a local class">Local</error></error> {}
}