summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-11-09 08:09:35 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-11-09 08:09:35 -0800
commit2bb53754337225508f2b4d12f1575df7c226100c (patch)
tree25b13922db12acc005143fbf3190eb7dbfc262b6
parent93572eef41f94f023037482f194db0ab07d0c33a (diff)
parentd8919f07d10662e6b15cf6d73cddb167a144f0e7 (diff)
downloadframeworks_base-2bb53754337225508f2b4d12f1575df7c226100c.zip
frameworks_base-2bb53754337225508f2b4d12f1575df7c226100c.tar.gz
frameworks_base-2bb53754337225508f2b4d12f1575df7c226100c.tar.bz2
Merge change Icaf932d0 into eclair
* changes: Fix code example in Parcelable javadoc
-rw-r--r--core/java/android/os/Parcelable.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/core/java/android/os/Parcelable.java b/core/java/android/os/Parcelable.java
index aee1e0b..0a4b60f 100644
--- a/core/java/android/os/Parcelable.java
+++ b/core/java/android/os/Parcelable.java
@@ -28,13 +28,17 @@ package android.os;
* <pre>
* public class MyParcelable implements Parcelable {
* private int mData;
- *
+ *
+ * public int describeContents() {
+ * return 0;
+ * }
+ *
* public void writeToParcel(Parcel out, int flags) {
* out.writeInt(mData);
* }
*
- * public static final Parcelable.Creator<MyParcelable> CREATOR
- * = new Parcelable.Creator<MyParcelable>() {
+ * public static final Parcelable.Creator&lt;MyParcelable&gt; CREATOR
+ * = new Parcelable.Creator&lt;MyParcelable&gt;() {
* public MyParcelable createFromParcel(Parcel in) {
* return new MyParcelable(in);
* }
@@ -42,7 +46,7 @@ package android.os;
* public MyParcelable[] newArray(int size) {
* return new MyParcelable[size];
* }
- * }
+ * };
*
* private MyParcelable(Parcel in) {
* mData = in.readInt();