Merge "Fix writeToParcel parameter nullability" am: 55fb62a515 am: 182a0a144e am: 12da16335e am: c17751421a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1840533 Change-Id: I8d665456425127c9845ae8ae03995ad4254e8457
This commit is contained in:
@@ -31639,7 +31639,7 @@ package android.os {
|
|||||||
|
|
||||||
public interface Parcelable {
|
public interface Parcelable {
|
||||||
method public int describeContents();
|
method public int describeContents();
|
||||||
method public void writeToParcel(android.os.Parcel, int);
|
method public void writeToParcel(@NonNull android.os.Parcel, int);
|
||||||
field public static final int CONTENTS_FILE_DESCRIPTOR = 1; // 0x1
|
field public static final int CONTENTS_FILE_DESCRIPTOR = 1; // 0x1
|
||||||
field public static final int PARCELABLE_WRITE_RETURN_VALUE = 1; // 0x1
|
field public static final int PARCELABLE_WRITE_RETURN_VALUE = 1; // 0x1
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
package android.os;
|
package android.os;
|
||||||
|
|
||||||
|
import android.annotation.NonNull;
|
||||||
import android.annotation.IntDef;
|
import android.annotation.IntDef;
|
||||||
import android.annotation.SystemApi;
|
import android.annotation.SystemApi;
|
||||||
|
|
||||||
@@ -202,7 +203,7 @@ public interface Parcelable {
|
|||||||
* @param flags Additional flags about how the object should be written.
|
* @param flags Additional flags about how the object should be written.
|
||||||
* May be 0 or {@link #PARCELABLE_WRITE_RETURN_VALUE}.
|
* May be 0 or {@link #PARCELABLE_WRITE_RETURN_VALUE}.
|
||||||
*/
|
*/
|
||||||
public void writeToParcel(Parcel dest, @WriteFlags int flags);
|
public void writeToParcel(@NonNull Parcel dest, @WriteFlags int flags);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Interface that must be implemented and provided as a public CREATOR
|
* Interface that must be implemented and provided as a public CREATOR
|
||||||
|
|||||||
Reference in New Issue
Block a user