From bbc48ec2393511bafd7f28c32b8fc6c469e7b1bf Mon Sep 17 00:00:00 2001 From: Zaxar163 Date: Tue, 11 Jun 2019 12:18:25 +0300 Subject: [PATCH] =?UTF-8?q?[FIX]=20=D0=9C=D0=BE=D0=B4=D0=B8=D1=84=D0=B8?= =?UTF-8?q?=D0=BA=D0=B0=D1=82=D0=BE=D1=80=20final=20=D0=B2=D1=81=D1=91=20?= =?UTF-8?q?=D1=80=D0=B0=D0=B2=D0=BD=D0=BE=20=D0=BD=D1=83=D0=B6=D0=B5=D0=BD?= =?UTF-8?q?=20=D0=B2=20ByteArrayToBase64TypeAdapter.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/pro/gravit/utils/helper/CommonHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LauncherCore/src/main/java/pro/gravit/utils/helper/CommonHelper.java b/LauncherCore/src/main/java/pro/gravit/utils/helper/CommonHelper.java index 7c546ae2..a7dc68a1 100644 --- a/LauncherCore/src/main/java/pro/gravit/utils/helper/CommonHelper.java +++ b/LauncherCore/src/main/java/pro/gravit/utils/helper/CommonHelper.java @@ -142,8 +142,8 @@ public static GsonBuilder newBuilder() { private static class ByteArrayToBase64TypeAdapter implements JsonSerializer, JsonDeserializer { private static final ByteArrayToBase64TypeAdapter INSTANCE = new ByteArrayToBase64TypeAdapter(); - private Base64.Decoder decoder = Base64.getUrlDecoder(); - private Base64.Encoder encoder = Base64.getUrlEncoder(); + private final Base64.Decoder decoder = Base64.getUrlDecoder(); + private final Base64.Encoder encoder = Base64.getUrlEncoder(); public byte[] deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException { if (json.isJsonArray()) { JsonArray byteArr = json.getAsJsonArray();