diff options
author | ElgarL <ElgarL@palmergames.com> | 2011-11-25 16:34:34 +0000 |
---|---|---|
committer | ElgarL <ElgarL@palmergames.com> | 2011-11-25 16:34:34 +0000 |
commit | 0cb77d8a03abc0879bec537bd672e09050c16a9e (patch) | |
tree | ead9857b6c16ec0ac7083c19d37df4911e4133ba /EssentialsGroupManager/src | |
parent | b41c3709bae6b1ad6f2b6ce9e5494421168c8f5f (diff) | |
download | Essentials-0cb77d8a03abc0879bec537bd672e09050c16a9e.tar Essentials-0cb77d8a03abc0879bec537bd672e09050c16a9e.tar.gz Essentials-0cb77d8a03abc0879bec537bd672e09050c16a9e.tar.lz Essentials-0cb77d8a03abc0879bec537bd672e09050c16a9e.tar.xz Essentials-0cb77d8a03abc0879bec537bd672e09050c16a9e.zip |
Minor optimization for groups
Diffstat (limited to 'EssentialsGroupManager/src')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/data/Group.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/data/Group.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/data/Group.java index c05065f5e..ba8915a18 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/data/Group.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/data/Group.java @@ -7,6 +7,8 @@ package org.anjocaido.groupmanager.data; import org.anjocaido.groupmanager.GroupManager; import org.anjocaido.groupmanager.dataholder.WorldDataHolder; import java.util.ArrayList; +import java.util.Collections; +import java.util.List; import java.util.Map; /** @@ -92,13 +94,13 @@ public class Group extends DataUnit implements Cloneable { } /** - * a COPY of inherits list + * an unmodifiable list of inherits list * You can't manage the list by here * Lol... version 0.6 had a problem because this. * @return the inherits */ - public ArrayList<String> getInherits() { - return new ArrayList<String>(inherits); + public List<String> getInherits() { + return Collections.unmodifiableList(inherits); } /** |