Skip to content

Commit

Permalink
adapt to scala/scala#9292
Browse files Browse the repository at this point in the history
  • Loading branch information
SethTisue committed Oct 29, 2020
1 parent fef9ecb commit 77f0381
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scalatest/src/main/scala/org/scalatest/fixture/Spec.scala
Expand Up @@ -101,7 +101,7 @@ private[scalatest] object Spec {
else
value

val bytes = Codec.toUTF8(toHash.toArray)
val bytes = Codec.toUTF8(toHash)
val md5 = MessageDigest.getInstance("MD5")
md5.update(bytes)
val md5chars = (md5.digest() map (b => (b & 0xFF).toHexString)).mkString
Expand Down
Expand Up @@ -1383,7 +1383,7 @@ private[scalatest] object RefSpec {
else
value

val bytes = Codec.toUTF8(toHash.toArray)
val bytes = Codec.toUTF8(toHash)
val md5 = MessageDigest.getInstance("MD5")
md5.update(bytes)
val md5chars = (md5.digest() map (b => (b & 0xFF).toHexString)).mkString
Expand Down

0 comments on commit 77f0381

Please sign in to comment.