Skip to content

Commit

Permalink
#2628 - make HelloActor and WorldActor public static classes
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorklang committed Oct 18, 2012
1 parent 98f4d8f commit 8495ca0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
public class HelloKernel implements Bootable {
final ActorSystem system = ActorSystem.create("hellokernel");

static class HelloActor extends UntypedActor {
public static class HelloActor extends UntypedActor {
final ActorRef worldActor =
getContext().actorOf(new Props(WorldActor.class));

Expand All @@ -25,7 +25,7 @@ else if (message instanceof String)
}
}

static class WorldActor extends UntypedActor {
public static class WorldActor extends UntypedActor {
public void onReceive(Object message) {
if (message instanceof String)
getSender().tell(((String)message).toUpperCase() + " world!");
Expand Down

0 comments on commit 8495ca0

Please sign in to comment.