Deprecate Serialization.deserialize that takes parameter #25945
This commit is contained in:
parent
9f76d55c2b
commit
36ff77124c
1 changed files with 1 additions and 0 deletions
|
|
@ -189,6 +189,7 @@ class Serialization(val system: ExtendedActorSystem) extends Extension {
|
|||
* using the optional type hint to the Serializer.
|
||||
* Returns either the resulting object or an Exception if one was thrown.
|
||||
*/
|
||||
@deprecated("Use deserialize that accepts the `manifest` as a class name.", since = "2.6.0")
|
||||
def deserialize[T](bytes: Array[Byte], serializerId: Int, clazz: Option[Class[_ <: T]]): Try[T] =
|
||||
Try {
|
||||
val serializer = try getSerializerById(serializerId)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue