Skip to content

Commit

Permalink
An unmodifiable list.
Browse files Browse the repository at this point in the history
  • Loading branch information
asofold committed Jan 16, 2018
1 parent 3e81499 commit 1d96fb3
Showing 1 changed file with 3 additions and 2 deletions.
@@ -1,6 +1,7 @@
package fr.neatmonster.nocheatplus.components.data.checktype;

import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
Expand Down Expand Up @@ -46,7 +47,7 @@ public CheckTypeTreeNode(final CheckType checkType, final N parent,
for (CheckType childType : childrenTypes) {
children.add(factory.newNode(childType, (N) this));
}
this.children = children;
this.children = Collections.unmodifiableList(children);
}

public CheckType getCheckType() {
Expand All @@ -58,7 +59,7 @@ public N getParent() {
}

/**
* An unmodifiable collection.
* An unmodifiable list.
*
* @return
*/
Expand Down

0 comments on commit 1d96fb3

Please sign in to comment.