Merge "Parcelable: mention that the CREATOR field must be public." am: a5241e0f80 am: ce08d5ec7f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2481435 Change-Id: I6d7f8d5e6e00022f76b7d5e049bc7024fa8027bd Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -16,8 +16,8 @@
|
|||||||
|
|
||||||
package android.os;
|
package android.os;
|
||||||
|
|
||||||
import android.annotation.NonNull;
|
|
||||||
import android.annotation.IntDef;
|
import android.annotation.IntDef;
|
||||||
|
import android.annotation.NonNull;
|
||||||
import android.annotation.SystemApi;
|
import android.annotation.SystemApi;
|
||||||
|
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
||||||
@@ -26,8 +26,9 @@ import java.lang.annotation.RetentionPolicy;
|
|||||||
/**
|
/**
|
||||||
* Interface for classes whose instances can be written to
|
* Interface for classes whose instances can be written to
|
||||||
* and restored from a {@link Parcel}. Classes implementing the Parcelable
|
* and restored from a {@link Parcel}. Classes implementing the Parcelable
|
||||||
* interface must also have a non-null static field called <code>CREATOR</code>
|
* interface must also have a non-null public static field called
|
||||||
* of a type that implements the {@link Parcelable.Creator} interface.
|
* <code>CREATOR</code> of a type that implements the {@link Parcelable.Creator}
|
||||||
|
* interface.
|
||||||
*
|
*
|
||||||
* <p>A typical implementation of Parcelable is:</p>
|
* <p>A typical implementation of Parcelable is:</p>
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user