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