diff options
author | snowleo <schneeleo@gmail.com> | 2011-12-06 08:28:41 +0100 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-12-06 08:28:41 +0100 |
commit | 6fe8e603af14fc9275060317c842c15ba327e971 (patch) | |
tree | 188142453adae44f8acb49fbbf7e4beb3c0836cd | |
parent | 6b06adfc23d2e907f86ddfddc880226311e90804 (diff) | |
download | Essentials-6fe8e603af14fc9275060317c842c15ba327e971.tar Essentials-6fe8e603af14fc9275060317c842c15ba327e971.tar.gz Essentials-6fe8e603af14fc9275060317c842c15ba327e971.tar.lz Essentials-6fe8e603af14fc9275060317c842c15ba327e971.tar.xz Essentials-6fe8e603af14fc9275060317c842c15ba327e971.zip |
Using the correct type of Set in UserMap.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/UserMap.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Essentials/src/com/earth2me/essentials/UserMap.java b/Essentials/src/com/earth2me/essentials/UserMap.java index 25f8c0c0e..b41298ed2 100644 --- a/Essentials/src/com/earth2me/essentials/UserMap.java +++ b/Essentials/src/com/earth2me/essentials/UserMap.java @@ -3,12 +3,12 @@ package com.earth2me.essentials; import com.google.common.cache.Cache; import com.google.common.cache.CacheBuilder; import com.google.common.cache.CacheLoader; -import com.google.common.collect.ConcurrentHashMultiset; import com.google.common.util.concurrent.UncheckedExecutionException; import java.io.File; import java.util.Collections; import java.util.Locale; import java.util.Set; +import java.util.concurrent.ConcurrentSkipListSet; import java.util.concurrent.ExecutionException; import org.bukkit.entity.Player; @@ -17,7 +17,7 @@ public class UserMap extends CacheLoader<String, User> implements IConf { private final transient IEssentials ess; private final transient Cache<String, User> users = CacheBuilder.newBuilder().softValues().build(this); - private final transient ConcurrentHashMultiset<String> keys = ConcurrentHashMultiset.create(); + private final transient ConcurrentSkipListSet<String> keys = new ConcurrentSkipListSet<String>(); public UserMap(final IEssentials ess) { @@ -109,7 +109,7 @@ public class UserMap extends CacheLoader<String, User> implements IConf public Set<String> getAllUniqueUsers() { - return Collections.unmodifiableSet(keys.elementSet()); + return Collections.unmodifiableSet(keys); } public int getUniqueUsers() |