mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-04-28 01:10:52 +00:00
Minor optimization for groups
This commit is contained in:
parent
b41c3709ba
commit
0cb77d8a03
1 changed files with 5 additions and 3 deletions
|
@ -7,6 +7,8 @@ package org.anjocaido.groupmanager.data;
|
||||||
import org.anjocaido.groupmanager.GroupManager;
|
import org.anjocaido.groupmanager.GroupManager;
|
||||||
import org.anjocaido.groupmanager.dataholder.WorldDataHolder;
|
import org.anjocaido.groupmanager.dataholder.WorldDataHolder;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.List;
|
||||||
import java.util.Map;
|
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
|
* You can't manage the list by here
|
||||||
* Lol... version 0.6 had a problem because this.
|
* Lol... version 0.6 had a problem because this.
|
||||||
* @return the inherits
|
* @return the inherits
|
||||||
*/
|
*/
|
||||||
public ArrayList<String> getInherits() {
|
public List<String> getInherits() {
|
||||||
return new ArrayList<String>(inherits);
|
return Collections.unmodifiableList(inherits);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue