mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 09:53:33 +00:00
Fix a bunch of lint warning
This commit is contained in:
parent
9c661bd283
commit
a49626aa43
7 changed files with 34 additions and 24 deletions
|
|
@ -100,6 +100,25 @@ public class Server implements Parcelable {
|
|||
this.timestamp = timestamp;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
Server server = (Server) o;
|
||||
return serverId.equals(server.getServerId());
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return serverId.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return serverId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int describeContents() {
|
||||
return 0;
|
||||
|
|
@ -125,4 +144,10 @@ public class Server implements Parcelable {
|
|||
this.salt = in.readString();
|
||||
this.timestamp = in.readLong();
|
||||
}
|
||||
|
||||
public static final Creator<Server> CREATOR = new Creator<Server>() {
|
||||
public Server createFromParcel(Parcel in) { return new Server(in); }
|
||||
|
||||
public Server[] newArray(int size) { return new Server[size]; }
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue