Make fromAnyRef return a ConfigValue unmodified instead of throwing

This commit is contained in:
verbeto 2015-02-26 09:01:04 -05:00 committed by Havoc Pennington
parent a73fe1f1e9
commit b81a45870d

View File

@ -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);