All Parcelable CREATOR fields are @NonNull.

If they were null, then the Parcelable would fail to work.

Bug: 126726802
Test: manual
Change-Id: I7929ffa2f20e5de1c8e68e8263cca99496e9d014
Exempt-From-Owner-Approval: Trivial API annotations
This commit is contained in:
Jeff Sharkey
2019-02-28 12:06:45 -07:00
parent 2c72944ddc
commit 08a1c3662a
11 changed files with 11 additions and 11 deletions

View File

@@ -69,7 +69,7 @@ public final class DataUsageRequest implements Parcelable {
dest.writeLong(thresholdInBytes);
}
public static final Creator<DataUsageRequest> CREATOR =
public static final @android.annotation.NonNull Creator<DataUsageRequest> CREATOR =
new Creator<DataUsageRequest>() {
@Override
public DataUsageRequest createFromParcel(Parcel in) {

View File

@@ -191,7 +191,7 @@ public final class IpSecAlgorithm implements Parcelable {
}
/** Parcelable Creator */
public static final Parcelable.Creator<IpSecAlgorithm> CREATOR =
public static final @android.annotation.NonNull Parcelable.Creator<IpSecAlgorithm> CREATOR =
new Parcelable.Creator<IpSecAlgorithm>() {
public IpSecAlgorithm createFromParcel(Parcel in) {
final String name = in.readString();

View File

@@ -322,7 +322,7 @@ public final class IpSecConfig implements Parcelable {
return strBuilder.toString();
}
public static final Parcelable.Creator<IpSecConfig> CREATOR =
public static final @android.annotation.NonNull Parcelable.Creator<IpSecConfig> CREATOR =
new Parcelable.Creator<IpSecConfig>() {
public IpSecConfig createFromParcel(Parcel in) {
return new IpSecConfig(in);

View File

@@ -65,7 +65,7 @@ public final class IpSecSpiResponse implements Parcelable {
spi = in.readInt();
}
public static final Parcelable.Creator<IpSecSpiResponse> CREATOR =
public static final @android.annotation.NonNull Parcelable.Creator<IpSecSpiResponse> CREATOR =
new Parcelable.Creator<IpSecSpiResponse>() {
public IpSecSpiResponse createFromParcel(Parcel in) {
return new IpSecSpiResponse(in);

View File

@@ -60,7 +60,7 @@ public final class IpSecTransformResponse implements Parcelable {
resourceId = in.readInt();
}
public static final Parcelable.Creator<IpSecTransformResponse> CREATOR =
public static final @android.annotation.NonNull Parcelable.Creator<IpSecTransformResponse> CREATOR =
new Parcelable.Creator<IpSecTransformResponse>() {
public IpSecTransformResponse createFromParcel(Parcel in) {
return new IpSecTransformResponse(in);

View File

@@ -65,7 +65,7 @@ public final class IpSecTunnelInterfaceResponse implements Parcelable {
interfaceName = in.readString();
}
public static final Parcelable.Creator<IpSecTunnelInterfaceResponse> CREATOR =
public static final @android.annotation.NonNull Parcelable.Creator<IpSecTunnelInterfaceResponse> CREATOR =
new Parcelable.Creator<IpSecTunnelInterfaceResponse>() {
public IpSecTunnelInterfaceResponse createFromParcel(Parcel in) {
return new IpSecTunnelInterfaceResponse(in);

View File

@@ -83,7 +83,7 @@ public final class IpSecUdpEncapResponse implements Parcelable {
fileDescriptor = in.readParcelable(ParcelFileDescriptor.class.getClassLoader());
}
public static final Parcelable.Creator<IpSecUdpEncapResponse> CREATOR =
public static final @android.annotation.NonNull Parcelable.Creator<IpSecUdpEncapResponse> CREATOR =
new Parcelable.Creator<IpSecUdpEncapResponse>() {
public IpSecUdpEncapResponse createFromParcel(Parcel in) {
return new IpSecUdpEncapResponse(in);

View File

@@ -1153,7 +1153,7 @@ public class NetworkStats implements Parcelable {
}
@UnsupportedAppUsage
public static final Creator<NetworkStats> CREATOR = new Creator<NetworkStats>() {
public static final @android.annotation.NonNull Creator<NetworkStats> CREATOR = new Creator<NetworkStats>() {
@Override
public NetworkStats createFromParcel(Parcel in) {
return new NetworkStats(in);

View File

@@ -719,7 +719,7 @@ public class NetworkStatsHistory implements Parcelable {
}
@UnsupportedAppUsage
public static final Creator<NetworkStatsHistory> CREATOR = new Creator<NetworkStatsHistory>() {
public static final @android.annotation.NonNull Creator<NetworkStatsHistory> CREATOR = new Creator<NetworkStatsHistory>() {
@Override
public NetworkStatsHistory createFromParcel(Parcel in) {
return new NetworkStatsHistory(in);

View File

@@ -482,7 +482,7 @@ public class NetworkTemplate implements Parcelable {
}
@UnsupportedAppUsage
public static final Creator<NetworkTemplate> CREATOR = new Creator<NetworkTemplate>() {
public static final @android.annotation.NonNull Creator<NetworkTemplate> CREATOR = new Creator<NetworkTemplate>() {
@Override
public NetworkTemplate createFromParcel(Parcel in) {
return new NetworkTemplate(in);

View File

@@ -355,7 +355,7 @@ public final class NsdServiceInfo implements Parcelable {
}
/** Implement the Parcelable interface */
public static final Creator<NsdServiceInfo> CREATOR =
public static final @android.annotation.NonNull Creator<NsdServiceInfo> CREATOR =
new Creator<NsdServiceInfo>() {
public NsdServiceInfo createFromParcel(Parcel in) {
NsdServiceInfo info = new NsdServiceInfo();