diff --git a/akka-docs/rst/project/migration-guide-2.3.x-2.4.x.rst b/akka-docs/rst/project/migration-guide-2.3.x-2.4.x.rst index 878c6f39bc..7f22d9a8e0 100644 --- a/akka-docs/rst/project/migration-guide-2.3.x-2.4.x.rst +++ b/akka-docs/rst/project/migration-guide-2.3.x-2.4.x.rst @@ -44,3 +44,6 @@ The following, previously deprecated, features have been removed: * JavaLoggingEventHandler, replaced by JavaLogger * UntypedActorFactory + +* Java API TestKit.dilated, moved to JavaTestKit.dilated + diff --git a/akka-testkit/src/main/scala/akka/testkit/TestKit.scala b/akka-testkit/src/main/scala/akka/testkit/TestKit.scala index acb0966c9c..7e1c9a833b 100644 --- a/akka-testkit/src/main/scala/akka/testkit/TestKit.scala +++ b/akka-testkit/src/main/scala/akka/testkit/TestKit.scala @@ -748,14 +748,6 @@ object TestKit { */ def now: Duration = System.nanoTime().nanos - /** - * Java API: Scale timeouts (durations) during tests with the configured - * 'akka.test.timefactor'. - */ - @deprecated("Use JavaTestKit.dilated", "2.3") - def dilated(duration: Duration, system: ActorSystem): Duration = - duration * TestKitExtension(system).TestTimeFactor - /** * Shut down an actor system and wait for termination. * On failure debug output will be logged about the remaining actors in the system.