=str #16602 Suppress dead letters

* akka 2.3.9
* also added missing `final` to case classes
This commit is contained in:
Patrik Nordwall 2015-01-23 17:18:09 +01:00
parent 84a5505ca9
commit 7cf80ab3f3
28 changed files with 145 additions and 129 deletions

View file

@ -35,8 +35,8 @@ private[akka] final case class Collect[In, Out](pf: PartialFunction[In, Out]) ex
import Collect.NotApplied
override def onPush(elem: In, ctx: Context[Out]): Directive =
pf.applyOrElse(elem, NotApplied) match {
case NotApplied ctx.pull()
case result: Out ctx.push(result)
case NotApplied ctx.pull()
case result: Out @unchecked ctx.push(result)
}
}