=str: various minor cleanups

This commit is contained in:
André Rüdiger 2015-08-01 00:13:14 +02:00 committed by 2beaucoup
parent 0c6ed6d83d
commit 6af9ced35c
46 changed files with 188 additions and 231 deletions

View file

@ -0,0 +1,23 @@
/**
* Copyright (C) 2015 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.stream.impl
import akka.stream._
import akka.stream.impl.StreamLayout.Module
/**
* INTERNAL API
*/
private[stream] trait FlowModule[In, Out, Mat] extends StreamLayout.Module {
override def replaceShape(s: Shape) =
if (s == shape) this
else throw new UnsupportedOperationException("cannot replace the shape of a FlowModule")
val inPort = Inlet[In]("Flow.in")
val outPort = Outlet[Out]("Flow.out")
override val shape = new FlowShape(inPort, outPort)
override def subModules: Set[Module] = Set.empty
}