Skip to content

Commit

Permalink
Fix incorrect comment that I recently added.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 529780761
Change-Id: If5e6615d2ab8d37ac94a7b18c000feb716539890
  • Loading branch information
haxorz authored and pull[bot] committed Jul 11, 2023
1 parent e6e9158 commit 2062144
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,8 @@ public ArchivedTreeArtifact getArchivedTreeArtifact(SpecialArtifact treeArtifact
private Artifact(ArtifactRoot root, PathFragment execPath, int hashCodeWithOwner) {
Preconditions.checkNotNull(root);
// Use a precomputed hashcode since there tends to be massive hash-based collections of
// artifacts. Importantly, the hashcode ought to incorporate the artifact's owner (not just the
// exec path) to prevent a hash collision on the same owner (this is the common case for
// artifacts. Importantly, the hashcode ought to incorporate the artifact's owner to prevent a
// hash collision on the same exec path but a different owner (this is the common case for
// multiple aspects that produce the same output file).
this.hashCode = hashCodeWithOwner;
this.root = root;
Expand Down

0 comments on commit 2062144

Please sign in to comment.