Skip to content

Commit

Permalink
Move @nullable annotations to the proper places.
Browse files Browse the repository at this point in the history
Closes bazelbuild#13161.

PiperOrigin-RevId: 365034037
  • Loading branch information
katre authored and copybara-github committed Mar 25, 2021
1 parent ed6ea5e commit b65e38d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ abstract static class Builder {

abstract Builder setPropagatingAspects(List<Aspect> propagatingAspects);

@Nullable
abstract Builder setToolchainContextKey(ToolchainContextKey toolchainContextKey);
abstract Builder setToolchainContextKey(@Nullable ToolchainContextKey toolchainContextKey);

abstract PartiallyResolvedDependency build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public Builder setConfigurationKey(@Nullable BuildConfigurationValue.Key configu
* Sets the {@link ToolchainContextKey} this configured target should use for toolchain
* resolution. When present, this overrides the normally determined toolchain context.
*/
public Builder setToolchainContextKey(ToolchainContextKey toolchainContextKey) {
public Builder setToolchainContextKey(@Nullable ToolchainContextKey toolchainContextKey) {
this.toolchainContextKey = toolchainContextKey;
return this;
}
Expand Down

0 comments on commit b65e38d

Please sign in to comment.