From bebcb3e9de6ab16667b73e57890a0df91d2a9f63 Mon Sep 17 00:00:00 2001 From: games647 Date: Fri, 10 Jun 2016 10:37:04 +0200 Subject: [PATCH] Make locale messages thread-safe --- .../com/github/games647/fastlogin/core/FastLoginCore.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/github/games647/fastlogin/core/FastLoginCore.java b/core/src/main/java/com/github/games647/fastlogin/core/FastLoginCore.java index 64a77c15..5666249e 100644 --- a/core/src/main/java/com/github/games647/fastlogin/core/FastLoginCore.java +++ b/core/src/main/java/com/github/games647/fastlogin/core/FastLoginCore.java @@ -1,9 +1,9 @@ package com.github.games647.fastlogin.core; import java.io.File; -import java.util.HashMap; import java.util.Map; import java.util.UUID; +import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ThreadFactory; import java.util.logging.Level; import java.util.logging.Logger; @@ -18,7 +18,7 @@ public abstract class FastLoginCore { + "-" + withoutDashes.substring(20, 32)); } - protected final Map localeMessages = new HashMap<>(); + protected final Map localeMessages = new ConcurrentHashMap<>(); private MojangApiConnector mojangApiConnector; private Storage storage;