Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Sara Adams <sara.e.adams@gmail.com>
  • Loading branch information
saraadams committed Nov 27, 2023
1 parent 5d14941 commit 8d34bab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import com.engflow.bazel.invocation.analyzer.core.InvalidProfileException;
import com.engflow.bazel.invocation.analyzer.core.MissingInputException;
import com.engflow.bazel.invocation.analyzer.core.NullDatumException;
import com.google.common.collect.ImmutableList;
import java.util.List;

/**
Expand All @@ -32,7 +33,7 @@
public class FlagValueDataProvider extends DataProvider {
@Override
public List<DatumSupplierSpecification<?>> getSuppliers() {
return List.of(
return ImmutableList.of(
DatumSupplierSpecification.of(
FlagValueExperimentalProfileIncludeTargetLabel.class,
memoized(this::getExperimentalProfileIncludeTargetLabel)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
import java.util.Objects;

/**
* Whether the Bazel flag `--experimental_profile_include_target_label` was enabled when the Bazel
* profile was generated.
* Whether the Bazel flag {@code --experimental_profile_include_target_label} was enabled when the
* Bazel profile was generated.
*
* @see <a
* href="https://bazel.build/reference/command-line-reference#flag--experimental_profile_include_target_label">Bazel
Expand Down Expand Up @@ -64,7 +64,7 @@ public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (!(o instanceof FlagValueExperimentalProfileIncludeTargetLabel)) {
return false;
}
FlagValueExperimentalProfileIncludeTargetLabel that =
Expand All @@ -79,6 +79,7 @@ public int hashCode() {

@Override
public String toString() {
return String.valueOf(profileIncludeTargetLabelEnabled);
return String.format(
"FlagValueExperimentalProfileIncludeTargetLabel{%b}", profileIncludeTargetLabelEnabled);
}
}

0 comments on commit 8d34bab

Please sign in to comment.