Adds suppport for node lists. Tested and verified in CraftIRC

This commit is contained in:
Animosity 2011-02-07 03:20:59 +08:00 committed by Warren
parent 25ed7caa90
commit 3a05654540

View File

@ -196,6 +196,7 @@ public class ConfigurationNode {
*/ */
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public List<String> getKeys(String path) { public List<String> getKeys(String path) {
if (path == null) return new ArrayList<String>(root.keySet());
Object o = getProperty(path); Object o = getProperty(path);
if (o == null) { if (o == null) {
return null; return null;