Migrate to @Override to remove warnings.
Bug: 6303344 Change-Id: I0d33b2ed448467379d576ccd71fb5ae20c878852
This commit is contained in:
@@ -155,7 +155,7 @@ public class NetworkStats implements Parcelable {
|
||||
operations = parcel.createLongArray();
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
public void writeToParcel(Parcel dest, int flags) {
|
||||
dest.writeLong(elapsedRealtime);
|
||||
dest.writeInt(size);
|
||||
@@ -662,16 +662,18 @@ public class NetworkStats implements Parcelable {
|
||||
return writer.toString();
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
public int describeContents() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static final Creator<NetworkStats> CREATOR = new Creator<NetworkStats>() {
|
||||
@Override
|
||||
public NetworkStats createFromParcel(Parcel in) {
|
||||
return new NetworkStats(in);
|
||||
}
|
||||
|
||||
@Override
|
||||
public NetworkStats[] newArray(int size) {
|
||||
return new NetworkStats[size];
|
||||
}
|
||||
|
||||
@@ -130,7 +130,7 @@ public class NetworkStatsHistory implements Parcelable {
|
||||
totalBytes = in.readLong();
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
public void writeToParcel(Parcel out, int flags) {
|
||||
out.writeLong(bucketDuration);
|
||||
writeLongArray(out, bucketStart, bucketCount);
|
||||
@@ -191,7 +191,7 @@ public class NetworkStatsHistory implements Parcelable {
|
||||
writeVarLongArray(out, operations, bucketCount);
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
public int describeContents() {
|
||||
return 0;
|
||||
}
|
||||
@@ -586,10 +586,12 @@ public class NetworkStatsHistory implements Parcelable {
|
||||
}
|
||||
|
||||
public static final Creator<NetworkStatsHistory> CREATOR = new Creator<NetworkStatsHistory>() {
|
||||
@Override
|
||||
public NetworkStatsHistory createFromParcel(Parcel in) {
|
||||
return new NetworkStatsHistory(in);
|
||||
}
|
||||
|
||||
@Override
|
||||
public NetworkStatsHistory[] newArray(int size) {
|
||||
return new NetworkStatsHistory[size];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user