make get() and getValue() on AbstractConfigObject return a more specific type

This commit is contained in:
Havoc Pennington 2011-11-12 09:26:36 -05:00
parent 795579f952
commit 5a51d590af

View File

@ -305,7 +305,7 @@ abstract class AbstractConfigObject extends AbstractConfigValue implements
}
@Override
public ConfigValue get(Object key) {
public AbstractConfigValue get(Object key) {
if (key instanceof String)
return peek((String) key);
else
@ -313,7 +313,7 @@ abstract class AbstractConfigObject extends AbstractConfigValue implements
}
@Override
public ConfigValue getValue(String path) {
public AbstractConfigValue getValue(String path) {
return find(path, null, path);
}