Update scalafmt-core to 2.1.0 (#27831)

* Update scalafmt-core to 2.1.0

* scalafmt
This commit is contained in:
Scala Steward 2019-10-01 12:24:51 +02:00 committed by Arnout Engelen
parent b10a83ad9b
commit 6b17a7a15f
11 changed files with 33 additions and 22 deletions

View file

@ -1,4 +1,4 @@
version = 2.0.1
version = 2.1.0
style = defaultWithAlign

View file

@ -157,7 +157,6 @@ class TwitterStreamQuickstartDocSpec extends AkkaSpec {
.mapConcat(identity) // Flatten the set of hashtags to a stream of hashtags
.map(_.name.toUpperCase) // Convert all hashtags to upper case
.runWith(Sink.foreach(println)) // Attach the Flow to a Sink that will finally print the hashtags
//#fiddle_code
.value
}

View file

@ -62,7 +62,10 @@ private[remote] class Encoder(
override def createLogicAndMaterializedValue(
inheritedAttributes: Attributes): (GraphStageLogic, OutboundCompressionAccess) = {
val logic = new GraphStageLogic(shape) with InHandler with OutHandler with StageLogging
val logic = new GraphStageLogic(shape)
with InHandler
with OutHandler
with StageLogging
with OutboundCompressionAccess {
private val headerBuilder = HeaderBuilder.out()
@ -347,7 +350,10 @@ private[remote] class Decoder(
val shape: FlowShape[EnvelopeBuffer, InboundEnvelope] = FlowShape(in, out)
def createLogicAndMaterializedValue(inheritedAttributes: Attributes): (GraphStageLogic, InboundCompressionAccess) = {
val logic = new TimerGraphStageLogic(shape) with InboundCompressionAccessImpl with InHandler with OutHandler
val logic = new TimerGraphStageLogic(shape)
with InboundCompressionAccessImpl
with InHandler
with OutHandler
with StageLogging {
import Decoder.RetryResolveRemoteDeployedRecipient

View file

@ -172,7 +172,10 @@ private[remote] class OutboundControlJunction(
override def createLogicAndMaterializedValue(inheritedAttributes: Attributes) = {
val logic = new GraphStageLogic(shape) with InHandler with OutHandler with StageLogging
val logic = new GraphStageLogic(shape)
with InHandler
with OutHandler
with StageLogging
with OutboundControlIngress {
val sendControlMessageCallback = getAsyncCallback[ControlMessage](internalSendControlMessage)

View file

@ -292,7 +292,8 @@ final class SharedKillSwitch private[stream] (val name: String) extends KillSwit
override def createLogicAndMaterializedValue(
inheritedAttributes: Attributes): (GraphStageLogic, SharedKillSwitch) = {
val shutdownListener = terminationSignal.createListener()
val logic = new KillSwitches.KillableGraphStageLogic(shutdownListener.future, shape) with InHandler
val logic = new KillSwitches.KillableGraphStageLogic(shutdownListener.future, shape)
with InHandler
with OutHandler {
setHandler(shape.in, this)
setHandler(shape.out, this)

View file

@ -37,7 +37,8 @@ private object ActorRefBackpressureSource {
private[akka] override def createLogicAndMaterializedValue(
inheritedAttributes: Attributes,
eagerMaterializer: Materializer): (GraphStageLogic, ActorRef) = {
val stage: GraphStageLogic with StageLogging with ActorRefStage = new GraphStageLogic(shape) with StageLogging
val stage: GraphStageLogic with StageLogging with ActorRefStage = new GraphStageLogic(shape)
with StageLogging
with ActorRefStage {
override protected def logSource: Class[_] = classOf[ActorRefSource[_]]

View file

@ -36,7 +36,8 @@ private object ActorRefSource {
private[akka] override def createLogicAndMaterializedValue(
inheritedAttributes: Attributes,
eagerMaterializer: Materializer): (GraphStageLogic, ActorRef) = {
val stage: GraphStageLogic with StageLogging with ActorRefStage = new GraphStageLogic(shape) with StageLogging
val stage: GraphStageLogic with StageLogging with ActorRefStage = new GraphStageLogic(shape)
with StageLogging
with ActorRefStage {
override protected def logSource: Class[_] = classOf[ActorRefSource[_]]