fix review comment .size>0 => .nonEmpty

This commit is contained in:
Roland 2011-12-11 13:05:18 +01:00
parent 11601c2926
commit 40654227b7
2 changed files with 3 additions and 3 deletions

View file

@ -50,7 +50,7 @@ object FaultHandlingStrategy {
case object Restart extends Action
case object Stop extends Action
case object Escalate extends Action
// Java API
def resume = Resume
def restart = Restart

View file

@ -157,8 +157,8 @@ class RemoteSystemDaemon(remote: Remote, _path: ActorPath, _parent: InternalActo
import remote.remoteAddress
message.getActorPath match {
case RemoteActorPath(`remoteAddress`, elems) if elems.size > 0 && elems.head == "remote"
// TODO RK canonicalize path so as not to duplicate it always
case RemoteActorPath(`remoteAddress`, elems) if elems.nonEmpty && elems.head == "remote"
// TODO RK canonicalize path so as not to duplicate it always #1446
val subpath = elems.drop(1)
val path = remote.remoteDaemon.path / subpath
val supervisor = remote.system.actorFor(message.getSupervisor).asInstanceOf[InternalActorRef]