Skip to content

Commit

Permalink
Fix deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mpilquist committed Jul 6, 2024
1 parent 3474cc7 commit d15a793
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/js/src/test/scala/fs2/HashSuitePlatform.scala
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import scodec.bits.ByteVector

import hash._

@deprecated("Use fs2.hashing.Hashing[F] instead", "3.11.0")
trait HashSuitePlatform {
def digest(algo: String, str: String): List[Byte] = {
val hash = createHash(algo.replace("-", "").toLowerCase())
Expand Down
1 change: 1 addition & 0 deletions core/jvm/src/test/scala/fs2/HashSuitePlatform.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ package fs2

import java.security.MessageDigest

@deprecated("Use fs2.hashing.Hashing[F] instead", "3.11.0")
trait HashSuitePlatform {
def digest(algo: String, str: String): List[Byte] =
MessageDigest.getInstance(algo).digest(str.getBytes).toList
Expand Down
1 change: 1 addition & 0 deletions core/native/src/test/scala/fs2/HashSuitePlatform.scala
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import scala.scalanative.unsigned._

import hash.openssl._

@deprecated("Use fs2.hashing.Hashing[F] instead", "3.11.0")
trait HashSuitePlatform {
def digest(algo: String, str: String): List[Byte] = {
val bytes = str.getBytes
Expand Down

0 comments on commit d15a793

Please sign in to comment.