Deprecate Serialization.deserialize that takes parameter #25945

This commit is contained in:
Helena Edelson 2019-05-20 17:39:46 -04:00
parent 9f76d55c2b
commit 36ff77124c

View file

@ -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)