Java 8 support
This commit is contained in:
parent
0fbeb92e25
commit
02e9f2796f
@ -14,8 +14,8 @@ public class TdApi {
|
|||||||
public abstract int getConstructor();
|
public abstract int getConstructor();
|
||||||
|
|
||||||
public byte[] serialize() throws IOException {
|
public byte[] serialize() throws IOException {
|
||||||
try(var baos = new ByteArrayOutputStream()) {
|
try(ByteArrayOutputStream baos = new ByteArrayOutputStream()) {
|
||||||
try(var out = new DataOutputStream(baos)) {
|
try(DataOutputStream out = new DataOutputStream(baos)) {
|
||||||
serialize(out);
|
serialize(out);
|
||||||
return baos.toByteArray();
|
return baos.toByteArray();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user