Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyverald authored Feb 2, 2024
1 parent 3953be8 commit ebd3cdb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -666,8 +666,8 @@ private String computeRuleKey(Rule rule, StarlarkSemantics starlarkSemantics) {
return new Fingerprint()
.addBytes(RuleFormatter.serializeRule(rule).build().toByteArray())
.addInt(MARKER_FILE_VERSION)
// TODO: Using the hashCode() method for StarlarkSemantics here is technically wrong.
// hashCode() is not guaranteed to be stable across JVM restarts.
// TODO: Using the hashCode() method for StarlarkSemantics here is suboptimal as
// it doesn't include any default values.
.addInt(starlarkSemantics.hashCode())
.hexDigestAndReset();
}
Expand Down

0 comments on commit ebd3cdb

Please sign in to comment.