diff --git a/src/main/java/com/google/devtools/build/lib/packages/RuleClass.java b/src/main/java/com/google/devtools/build/lib/packages/RuleClass.java index 05e2f634674e1f..2d405b3d133475 100644 --- a/src/main/java/com/google/devtools/build/lib/packages/RuleClass.java +++ b/src/main/java/com/google/devtools/build/lib/packages/RuleClass.java @@ -1354,7 +1354,7 @@ public Label getRuleDefinitionEnvironmentLabel() { * @throws IllegalArgumentException if the attribute with this name does not exist */ @CanIgnoreReturnValue - public Builder removeAttribute(String name) { + public Builder removeAttribute(String name) { Preconditions.checkState(attributes.containsKey(name), "No such attribute '%s' to remove.", name); attributes.remove(name); @@ -1366,7 +1366,7 @@ public Builder removeAttribute(String name) { * rules's. Only works for Starlark. */ @CanIgnoreReturnValue - public Builder setExecutableStarlark() { + public Builder setExecutableStarlark() { this.isExecutableStarlark = true; return this; } @@ -1431,7 +1431,7 @@ public Builder setOutputFileKind(OutputFile.Kind outputFileKind) { * com.google.devtools.build.lib.analysis.constraints.ConstraintSemantics} for details. */ @CanIgnoreReturnValue - public Builder compatibleWith(Label... environments) { + public Builder compatibleWith(Label... environments) { add( attr(DEFAULT_COMPATIBLE_ENVIRONMENT_ATTR, LABEL_LIST) .value(ImmutableList.copyOf(environments))); @@ -1447,7 +1447,7 @@ public Builder compatibleWith(Label... environments) { *

The input list cannot be empty. */ @CanIgnoreReturnValue - public Builder restrictedTo(Label firstEnvironment, Label... otherEnvironments) { + public Builder restrictedTo(Label firstEnvironment, Label... otherEnvironments) { ImmutableList