Update headers.txt
This commit is contained in:
parent
73e2a15473
commit
a9b4b6f44a
@ -12,12 +12,13 @@ public class TdApi {
|
|||||||
public abstract static class Object {
|
public abstract static class Object {
|
||||||
public native String toString();
|
public native String toString();
|
||||||
|
|
||||||
public boolean equals(Object o) {
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
if (o == null) return false;
|
if (o == null) return false;
|
||||||
if (o == this) return true;
|
if (o == this) return true;
|
||||||
if (o instanceof Object) {
|
if (o instanceof TdApi.Object) {
|
||||||
try {
|
try {
|
||||||
return Arrays.equals(this.serialize(), o.serialize());
|
return Arrays.equals(this.serialize(), ((TdApi.Object) o).serialize());
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
}
|
}
|
||||||
@ -25,6 +26,7 @@ public class TdApi {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
try {
|
try {
|
||||||
return Arrays.hashCode(this.serialize());
|
return Arrays.hashCode(this.serialize());
|
||||||
|
Loading…
Reference in New Issue
Block a user