Adds suppport for node lists. Tested and verified in CraftIRC

By: Animosity <nullcline@gmail.com>
This commit is contained in:
Bukkit/Spigot
2011-02-07 03:20:59 +08:00
parent ed824523e8
commit d7e0bed36b

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;