From ebd3cdb81537323887d02b2d5a5c18999b3803f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?X=C3=B9d=C5=8Dng=20Y=C3=A1ng?= Date: Fri, 2 Feb 2024 11:41:31 -0800 Subject: [PATCH] review comments --- .../lib/rules/repository/RepositoryDelegatorFunction.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/google/devtools/build/lib/rules/repository/RepositoryDelegatorFunction.java b/src/main/java/com/google/devtools/build/lib/rules/repository/RepositoryDelegatorFunction.java index 63b3059bf04896..912d0264ec0820 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/repository/RepositoryDelegatorFunction.java +++ b/src/main/java/com/google/devtools/build/lib/rules/repository/RepositoryDelegatorFunction.java @@ -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(); }