From f488b32b3496c52300857740daaf3d6eb3191eb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Antonsson?= Date: Mon, 15 Oct 2012 15:13:59 +0200 Subject: [PATCH] Corrected mixup in migration guide. --- akka-docs/rst/project/migration-guide-2.0.x-2.1.x.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/akka-docs/rst/project/migration-guide-2.0.x-2.1.x.rst b/akka-docs/rst/project/migration-guide-2.0.x-2.1.x.rst index 449746ad02..88ae42fb6d 100644 --- a/akka-docs/rst/project/migration-guide-2.0.x-2.1.x.rst +++ b/akka-docs/rst/project/migration-guide-2.0.x-2.1.x.rst @@ -203,17 +203,17 @@ v2.0 Scala:: v2.1 Scala:: - val router2 = system.actorOf(Props[ExampleActor1].withRouter( - RoundRobinRouter(routees = routees))) + val router2 = system.actorOf(Props.empty.withRouter( + RoundRobinRouter(routees = routees))) v2.0 Java:: - ActorRef router2 = system.actorOf(new Props(ExampleActor.class).withRouter( + ActorRef router2 = system.actorOf(new Props().withRouter( RoundRobinRouter.create(routees))); v2.1 Java:: - ActorRef router2 = system.actorOf(new Props().withRouter( + ActorRef router2 = system.actorOf(Props.empty().withRouter( RoundRobinRouter.create(routees))); Props: Function-based creation