Skip to content

Commit

Permalink
Strengthen the signature for computeBytecodeHash
Browse files Browse the repository at this point in the history
Iterable won't suffice. With iterable the hash can be order specific.
  • Loading branch information
Friendseeker committed Oct 3, 2024
1 parent 39720e1 commit 4cd1b68
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ object Analysis {
case class Sources(java: Set[String], scala: Set[String])

def computeBytecodeHash(
localProducts: Iterable[LocalProduct],
nonLocalProduct: Iterable[NonLocalProduct]
localProducts: scala.collection.Set[LocalProduct],
nonLocalProduct: scala.collection.Set[NonLocalProduct]
): Int = {
val hashes =
localProducts.map(_.classFileStamp.getHash) ++ nonLocalProduct.map(_.classFileStamp.getHash)
Expand Down

0 comments on commit 4cd1b68

Please sign in to comment.