ConcurrentHashMap is junk - lets stick to standard unless issues arise.

This commit is contained in:
md_5 2013-04-11 20:32:49 +10:00
parent 88c99f071e
commit 5d1a2c59a7

View File

@ -6,8 +6,8 @@ import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.logging.Level;
import net.md_5.bungee.api.ProxyServer;
import net.md_5.bungee.api.ReconnectHandler;
@ -41,10 +41,7 @@ public class YamlReconnectHandler implements ReconnectHandler
if ( data == null )
{
data = new ConcurrentHashMap<>();
} else
{
data = new ConcurrentHashMap<>( data );
data = new HashMap<>();
}
}