not isEmpty => nonEmpty
This commit is contained in:
parent
24d01a101a
commit
e4d8843971
1 changed files with 1 additions and 1 deletions
|
|
@ -209,7 +209,7 @@ object ActorSelection {
|
|||
def apply(anchorRef: ActorRef, elements: Iterable[String]): ActorSelection = {
|
||||
val compiled: immutable.IndexedSeq[SelectionPathElement] = elements.iterator
|
||||
.collect {
|
||||
case x if !x.isEmpty =>
|
||||
case x if x.nonEmpty =>
|
||||
if ((x.indexOf('?') != -1) || (x.indexOf('*') != -1)) SelectChildPattern(x)
|
||||
else if (x == "..") SelectParent
|
||||
else SelectChildName(x)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue