Make map stage final and refactor OneBoundedSetup to take a decider. (#21374)

* Remove new from Map constructions
This commit is contained in:
Michał Płachta 2016-09-08 11:47:17 +02:00 committed by Patrik Nordwall
parent fc3761bc4b
commit b3bba1229f
3 changed files with 22 additions and 22 deletions

View file

@ -25,8 +25,7 @@ import akka.stream.impl.Stages.DefaultAttributes
/**
* INTERNAL API
*/
// FIXME: Not final because InterpreterSupervisionSpec. Some better option is needed here
case class Map[In, Out](f: In Out) extends GraphStage[FlowShape[In, Out]] {
final case class Map[In, Out](f: In Out) extends GraphStage[FlowShape[In, Out]] {
val in = Inlet[In]("Map.in")
val out = Outlet[Out]("Map.out")
override val shape = FlowShape(in, out)