add comment about not having ConfigValue.parent()

This commit is contained in:
Havoc Pennington 2011-11-16 09:36:06 -05:00
parent b7a73dc85b
commit 054e27ccd0

View File

@ -4,6 +4,13 @@ import com.typesafe.config.ConfigOrigin;
import com.typesafe.config.ConfigResolveOptions;
import com.typesafe.config.ConfigValue;
/**
*
* Trying very hard to avoid a parent reference in config values; when you have
* a tree like this, the availability of parent() tends to result in a lot of
* improperly-factored and non-modular code. Please don't add parent().
*
*/
abstract class AbstractConfigValue implements ConfigValue {
final private ConfigOrigin origin;