mirror of
https://github.com/lightbend/config.git
synced 2025-01-15 23:01:05 +08:00
make get() and getValue() on AbstractConfigObject return a more specific type
This commit is contained in:
parent
795579f952
commit
5a51d590af
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user