TODO In Pekko 1.1.0, we can remove deprecation and make the method final
// TODO In Pekko 1.1.0, we can remove deprecation and make the method final
@deprecated("Override preRestart with message parameter with Optional type instead", "Akka 2.5.0")
@throws(classOf[Exception])
@nowarn("msg=deprecated")
override def preRestart(reason: Throwable, message: Option[Any]): Unit = {
import pekko.util.OptionConverters._
preRestart(reason, message.toJava)
}