Make RuleContext.getConfiguration() private.
This further discourages the paradigm of rule implementations consuming
entire configs vs. declared fragments.
It also makes RuleContext a more reliable tracker of which fragments
rules use.
@@ -453,7 +453,7 @@ public final class RuleContext extends TargetContext
return isLegalFragment(fragment, NoTransition.INSTANCE);
}
- protected BuildConfiguration getConfiguration(ConfigurationTransition transition) {
+ private BuildConfiguration getConfiguration(ConfigurationTransition transition) {
return transition.isHostTransition() ? hostConfiguration : getConfiguration();
}
