From 02e9f2796f092637930280e2d075d81bfca0f645 Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Thu, 20 Aug 2020 14:05:18 +0200 Subject: [PATCH] Java 8 support --- headers.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/headers.txt b/headers.txt index 138874a..26f3366 100644 --- a/headers.txt +++ b/headers.txt @@ -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(); }