Merge change Icaf932d0 into eclair
* changes: Fix code example in Parcelable javadoc
This commit is contained in:
@@ -29,12 +29,16 @@ package android.os;
|
|||||||
* public class MyParcelable implements Parcelable {
|
* public class MyParcelable implements Parcelable {
|
||||||
* private int mData;
|
* private int mData;
|
||||||
*
|
*
|
||||||
|
* public int describeContents() {
|
||||||
|
* return 0;
|
||||||
|
* }
|
||||||
|
*
|
||||||
* public void writeToParcel(Parcel out, int flags) {
|
* public void writeToParcel(Parcel out, int flags) {
|
||||||
* out.writeInt(mData);
|
* out.writeInt(mData);
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* public static final Parcelable.Creator<MyParcelable> CREATOR
|
* public static final Parcelable.Creator<MyParcelable> CREATOR
|
||||||
* = new Parcelable.Creator<MyParcelable>() {
|
* = new Parcelable.Creator<MyParcelable>() {
|
||||||
* public MyParcelable createFromParcel(Parcel in) {
|
* public MyParcelable createFromParcel(Parcel in) {
|
||||||
* return new MyParcelable(in);
|
* return new MyParcelable(in);
|
||||||
* }
|
* }
|
||||||
@@ -42,7 +46,7 @@ package android.os;
|
|||||||
* public MyParcelable[] newArray(int size) {
|
* public MyParcelable[] newArray(int size) {
|
||||||
* return new MyParcelable[size];
|
* return new MyParcelable[size];
|
||||||
* }
|
* }
|
||||||
* }
|
* };
|
||||||
*
|
*
|
||||||
* private MyParcelable(Parcel in) {
|
* private MyParcelable(Parcel in) {
|
||||||
* mData = in.readInt();
|
* mData = in.readInt();
|
||||||
|
|||||||
Reference in New Issue
Block a user