diff options
author | ElgarL <ElgarL@palmergames.com> | 2012-09-25 20:39:24 +0100 |
---|---|---|
committer | ElgarL <ElgarL@palmergames.com> | 2012-09-25 20:39:24 +0100 |
commit | 353253b9c579585e475264ce96789d1d0b0b0b82 (patch) | |
tree | cad24bcb4b6541a241c7e9f953ec3b68848450ad /EssentialsGroupManager/src | |
parent | 1438230b708e68db14e54ebb668016654ed3c2fb (diff) | |
download | Essentials-353253b9c579585e475264ce96789d1d0b0b0b82.tar Essentials-353253b9c579585e475264ce96789d1d0b0b0b82.tar.gz Essentials-353253b9c579585e475264ce96789d1d0b0b0b82.tar.lz Essentials-353253b9c579585e475264ce96789d1d0b0b0b82.tar.xz Essentials-353253b9c579585e475264ce96789d1d0b0b0b82.zip |
No need for a new array.
Diffstat (limited to 'EssentialsGroupManager/src')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/WorldDataHolder.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/WorldDataHolder.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/WorldDataHolder.java index 30a7e19e4..a4b346154 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/WorldDataHolder.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/WorldDataHolder.java @@ -1026,9 +1026,7 @@ public class WorldDataHolder { synchronized (ph.getUsers()) { // A sorted list of users. - ArrayList<String> names = new ArrayList<String>(new TreeSet<String>(ph.getUsers().keySet())); - - for (String userKey : names) { + for (String userKey : new TreeSet<String>(ph.getUsers().keySet())) { User user = ph.getUsers().get(userKey); if ((user.getGroup() == null || user.getGroup().equals(ph.getDefaultGroup())) && user.getPermissionList().isEmpty() && user.getVariables().isEmpty() && user.isSubGroupsEmpty()) { continue; |