mirror of
https://github.com/lightbend/config.git
synced 2025-01-15 23:01:05 +08:00
Make fromAnyRef return a ConfigValue unmodified instead of throwing
This commit is contained in:
parent
a73fe1f1e9
commit
b81a45870d
@ -216,6 +216,8 @@ public class ConfigImpl {
|
||||
return new ConfigNull(origin);
|
||||
else
|
||||
return defaultNullValue;
|
||||
} else if(object instanceof AbstractConfigValue) {
|
||||
return (AbstractConfigValue) object;
|
||||
} else if (object instanceof Boolean) {
|
||||
if (origin != defaultValueOrigin) {
|
||||
return new ConfigBoolean(origin, (Boolean) object);
|
||||
|
Loading…
Reference in New Issue
Block a user