Added concurrency sort support to ConfigNode

Affects issues:
- Fixed #1382
This commit is contained in:
Risto Lahtela 2020-03-28 10:13:11 +02:00
parent 5bdb49007b
commit 975bb64c4c

View File

@ -28,6 +28,7 @@ import org.apache.commons.lang3.StringUtils;
import java.io.IOException; import java.io.IOException;
import java.util.*; import java.util.*;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.stream.Collectors; import java.util.stream.Collectors;
/** /**
@ -54,7 +55,7 @@ public class ConfigNode {
this.parent = parent; this.parent = parent;
this.value = value; this.value = value;
nodeOrder = new ArrayList<>(); nodeOrder = new CopyOnWriteArrayList<>();
childNodes = new HashMap<>(); childNodes = new HashMap<>();
comment = new ArrayList<>(); comment = new ArrayList<>();
} }