From 9f8ad518e83ce592ef13016365be03711dcae9de Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 28 Apr 2013 10:21:15 +1000 Subject: [PATCH] Don't use trove sets --- proxy/src/main/java/net/md_5/bungee/UserConnection.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/proxy/src/main/java/net/md_5/bungee/UserConnection.java b/proxy/src/main/java/net/md_5/bungee/UserConnection.java index a3c7948d..68deaf50 100644 --- a/proxy/src/main/java/net/md_5/bungee/UserConnection.java +++ b/proxy/src/main/java/net/md_5/bungee/UserConnection.java @@ -1,7 +1,6 @@ package net.md_5.bungee; import com.google.common.base.Preconditions; -import gnu.trove.set.hash.THashSet; import io.netty.bootstrap.Bootstrap; import io.netty.channel.Channel; import io.netty.channel.ChannelFuture; @@ -15,7 +14,6 @@ import java.util.Collections; import java.util.HashSet; import java.util.List; import java.util.Objects; -import java.util.Set; import java.util.logging.Level; import lombok.AccessLevel; import lombok.Getter; @@ -61,14 +59,14 @@ public final class UserConnection implements ProxiedPlayer @Setter private int ping = 1000; // Permissions - private final Collection playerGroups = new THashSet<>(); - private final Collection permissions = new THashSet<>(); + private final Collection playerGroups = new HashSet<>(); + private final Collection permissions = new HashSet<>(); private final Object permMutex = new Object(); @Getter private final Object switchMutex = new Object(); public PacketCCSettings settings; public final Scoreboard serverSentScoreboard = new Scoreboard(); - public final Set pendingConnects = new HashSet<>(); + public final Collection pendingConnects = new HashSet<>(); public UserConnection(BungeeCord bungee, ChannelWrapper channel, PendingConnection pendingConnection, Packet2Handshake handshake, Packet1Login forgeLogin, List loginMessages) {