Update headers.txt

This commit is contained in:
Andrea Cavalli 2020-10-15 11:42:07 +02:00
parent 93b01456e5
commit 73e2a15473

View File

@ -16,13 +16,22 @@ public class TdApi {
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 Object) {
return Arrays.equals(this.serialize(), o.serialize()); try {
return Arrays.equals(this.serialize(), o.serialize());
} catch (IOException ex) {
ex.printStackTrace();
}
} }
return false; return false;
} }
public int hashCode() { public int hashCode() {
return Arrays.hashCode(this.serialize()); try {
return Arrays.hashCode(this.serialize());
} catch (IOException ex) {
ex.printStackTrace();
}
return 0;
} }
public abstract int getConstructor(); public abstract int getConstructor();