Fix Javadoc for "features"
"features" can be used on individual rules, and RuleContext accounts for that.
PiperOrigin-RevId: 283029012
diff --git a/src/main/java/com/google/devtools/build/lib/analysis/RuleContext.java b/src/main/java/com/google/devtools/build/lib/analysis/RuleContext.java
index 2c02e71..38116fb 100644
--- a/src/main/java/com/google/devtools/build/lib/analysis/RuleContext.java
+++ b/src/main/java/com/google/devtools/build/lib/analysis/RuleContext.java
@@ -1562,14 +1562,12 @@
return isVisible(rule.getLabel(), prerequisite);
}
- /**
- * @return the set of features applicable for the current rule's package.
- */
+ /** @return the set of features applicable for the current rule. */
public ImmutableSet<String> getFeatures() {
return enabledFeatures;
}
- /** @return the set of features that are disabled for the current rule's package. */
+ /** @return the set of features that are disabled for the current rule. */
public ImmutableSet<String> getDisabledFeatures() {
return disabledFeatures;
}