Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 245f8521 authored by Jing Ji's avatar Jing Ji Committed by Android (Google) Code Review
Browse files

Merge "Align the Kotlin sample code for Parcelable with Java"

parents e32fe755 d33593f9
Loading
Loading
Loading
Loading
+6 −9
Original line number Diff line number Diff line
@@ -44,9 +44,7 @@ import java.lang.annotation.RetentionPolicy;
 *         out.writeInt(mData)
 *     }
 *
 *     companion object {
 *         val CREATOR: Parcelable.Creator<MyParcelable?>
 *                 = object : Parcelable.Creator<MyParcelable?> {
 *     companion object CREATOR: Parcelable.Creator<MyParcelable?> {
 *         override fun createFromParcel(`in`: Parcel): MyParcelable? {
 *             return MyParcelable(`in`)
 *         }
@@ -56,7 +54,6 @@ import java.lang.annotation.RetentionPolicy;
 *         }
 *     }
 * }
 * }
 * </pre>
 * </section><section><h3 id="java">Java</h3>
 * <pre class="prettyprint lang-java">