Skip to content

Commit

Permalink
Remove some unneeded declarations.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 485078451
Change-Id: I105d84115d532a47fbd784324d397ecb45d4a6ed
  • Loading branch information
aiuto authored and copybara-github committed Oct 31, 2022
1 parent 1d514ab commit 606fadd
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,7 @@ public Label getRuleDefinitionEnvironmentLabel() {
* @throws IllegalArgumentException if the attribute with this name does not exist
*/
@CanIgnoreReturnValue
public <TYPE> Builder removeAttribute(String name) {
public Builder removeAttribute(String name) {
Preconditions.checkState(attributes.containsKey(name), "No such attribute '%s' to remove.",
name);
attributes.remove(name);
Expand All @@ -1366,7 +1366,7 @@ public <TYPE> Builder removeAttribute(String name) {
* rules's. Only works for Starlark.
*/
@CanIgnoreReturnValue
public <TYPE> Builder setExecutableStarlark() {
public Builder setExecutableStarlark() {
this.isExecutableStarlark = true;
return this;
}
Expand Down Expand Up @@ -1431,7 +1431,7 @@ public Builder setOutputFileKind(OutputFile.Kind outputFileKind) {
* com.google.devtools.build.lib.analysis.constraints.ConstraintSemantics} for details.
*/
@CanIgnoreReturnValue
public <TYPE> Builder compatibleWith(Label... environments) {
public Builder compatibleWith(Label... environments) {
add(
attr(DEFAULT_COMPATIBLE_ENVIRONMENT_ATTR, LABEL_LIST)
.value(ImmutableList.copyOf(environments)));
Expand All @@ -1447,7 +1447,7 @@ public <TYPE> Builder compatibleWith(Label... environments) {
* <p>The input list cannot be empty.
*/
@CanIgnoreReturnValue
public <TYPE> Builder restrictedTo(Label firstEnvironment, Label... otherEnvironments) {
public Builder restrictedTo(Label firstEnvironment, Label... otherEnvironments) {
ImmutableList<Label> environments = ImmutableList.<Label>builder().add(firstEnvironment)
.add(otherEnvironments).build();
add(
Expand All @@ -1464,7 +1464,7 @@ public <TYPE> Builder restrictedTo(Label firstEnvironment, Label... otherEnviron
* @param reason user-informative message explaining the reason for exemption (not used)
*/
@CanIgnoreReturnValue
public <TYPE> Builder exemptFromConstraintChecking(String reason) {
public Builder exemptFromConstraintChecking(String reason) {
Preconditions.checkState(this.supportsConstraintChecking);
this.supportsConstraintChecking = false;
attributes.remove(RuleClass.COMPATIBLE_ENVIRONMENT_ATTR);
Expand Down

0 comments on commit 606fadd

Please sign in to comment.