Skip to content

Commit

Permalink
chore: sort imports for pekko-stream
Browse files Browse the repository at this point in the history
  • Loading branch information
He-Pin committed Jan 13, 2024
1 parent 651437e commit 764d307
Show file tree
Hide file tree
Showing 66 changed files with 155 additions and 139 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@ package com.typesafe.sslconfig.pekko

import java.util.Collections
import javax.net.ssl._
import com.typesafe.sslconfig.pekko.util.PekkoLoggerFactory
import com.typesafe.sslconfig.ssl._
import com.typesafe.sslconfig.util.LoggerFactory

import scala.annotation.nowarn

import org.apache.pekko
import pekko.actor._
import pekko.annotation.InternalApi
import pekko.event.Logging
import scala.annotation.nowarn

import com.typesafe.sslconfig.pekko.util.PekkoLoggerFactory
import com.typesafe.sslconfig.ssl._
import com.typesafe.sslconfig.util.LoggerFactory

@deprecated("Use Tcp and TLS with SSLEngine parameters instead. Setup the SSLEngine with needed parameters.",
"Akka 2.6.0")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@

package com.typesafe.sslconfig.pekko.util

import com.typesafe.sslconfig.util.{ LoggerFactory, NoDepsLogger }

import org.apache.pekko
import pekko.actor.ActorSystem
import pekko.event.{ DummyClassForStringSources, EventStream }
import pekko.event.Logging._

import com.typesafe.sslconfig.util.{ LoggerFactory, NoDepsLogger }

final class PekkoLoggerFactory(system: ActorSystem) extends LoggerFactory {
override def apply(clazz: Class[_]): NoDepsLogger = new PekkoLoggerBridge(system.eventStream, clazz)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,10 @@ package org.apache.pekko.stream

import java.util.concurrent.TimeUnit

import scala.annotation.nowarn
import scala.concurrent.duration._
import scala.util.control.NoStackTrace

import scala.annotation.nowarn
import com.typesafe.config.Config
import com.typesafe.config.ConfigFactory

import org.apache.pekko
import pekko.actor.ActorContext
import pekko.actor.ActorRef
Expand All @@ -36,6 +33,9 @@ import pekko.stream.impl._
import pekko.stream.stage.GraphStageLogic
import pekko.util.Helpers.toRootLowerCase

import com.typesafe.config.Config
import com.typesafe.config.ConfigFactory

object ActorMaterializer {

/**
Expand Down
3 changes: 1 addition & 2 deletions stream/src/main/scala/org/apache/pekko/stream/IOResult.scala
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@

package org.apache.pekko.stream

import scala.annotation.nowarn
import scala.util.{ Failure, Success, Try }
import scala.util.control.NoStackTrace

import scala.annotation.nowarn

import org.apache.pekko
import pekko.Done

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ package org.apache.pekko.stream

import scala.collection.mutable
import scala.concurrent.Future
import scala.util.control.{ NoStackTrace, NonFatal }
import scala.util.{ Failure, Success, Try }
import scala.util.control.{ NoStackTrace, NonFatal }

import org.apache.pekko
import pekko.annotation.InternalApi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@

package org.apache.pekko.stream

import scala.annotation.{ implicitNotFound, nowarn }
import scala.concurrent.ExecutionContextExecutor
import scala.concurrent.duration.FiniteDuration

import scala.annotation.{ implicitNotFound, nowarn }

import org.apache.pekko
import pekko.actor.ActorRef
import pekko.actor.ActorSystem
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
package org.apache.pekko.stream

import scala.concurrent.duration.FiniteDuration

import org.apache.pekko
import pekko.event.Logging
import pekko.event.Logging.LogLevel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ package org.apache.pekko.stream

import java.util.concurrent.TimeUnit

import scala.concurrent.duration._

import scala.annotation.nowarn
import com.typesafe.config.Config
import scala.concurrent.duration._

import org.apache.pekko
import pekko.actor.ActorSystem
import pekko.annotation.DoNotInherit
import pekko.stream.impl.streamref.StreamRefSettingsImpl

import com.typesafe.config.Config

@nowarn("msg=deprecated")
object StreamRefSettings {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@

package org.apache.pekko.stream

import org.apache.pekko
import pekko.annotation.DoNotInherit

import scala.concurrent.TimeoutException
import scala.util.control.NoStackTrace

import org.apache.pekko
import pekko.annotation.DoNotInherit

/**
* Base class for timeout exceptions specific to Pekko Streams
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ package org.apache.pekko.stream

import scala.util.control.NoStackTrace

import org.reactivestreams.Subscription

import org.apache.pekko.annotation.DoNotInherit

import org.reactivestreams.Subscription

/**
* Extension of Subscription that allows to pass a cause when a subscription is cancelled.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@

package org.apache.pekko.stream

import SubstreamCancelStrategies._

import scala.annotation.nowarn

import SubstreamCancelStrategies._

/**
* Represents a strategy that decides how to deal with substream events.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@

package org.apache.pekko.stream

import scala.annotation.nowarn
import scala.concurrent.Await
import scala.concurrent.Promise

import scala.annotation.nowarn

import org.apache.pekko
import pekko.actor.ActorSystem
import pekko.actor.ClassicActorSystemProvider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ package org.apache.pekko.stream.impl

import java.util.concurrent.atomic.AtomicBoolean

import scala.annotation.nowarn
import scala.collection.immutable
import scala.concurrent.ExecutionContextExecutor
import scala.concurrent.duration._
import scala.annotation.nowarn

import org.apache.pekko
import pekko.actor._
import pekko.annotation.DoNotInherit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

package org.apache.pekko.stream.impl

import org.reactivestreams.{ Processor, Subscriber, Subscription }

import org.apache.pekko
import pekko.actor._
import pekko.annotation.InternalApi
Expand All @@ -24,6 +22,8 @@ import pekko.stream.ActorAttributes
import pekko.stream.impl.ActorSubscriberMessage.{ OnComplete, OnError, OnNext, OnSubscribe }
import pekko.util.unused

import org.reactivestreams.{ Processor, Subscriber, Subscription }

/**
* INTERNAL API
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ import scala.annotation.tailrec
import scala.collection.immutable
import scala.util.control.NoStackTrace

import org.reactivestreams.{ Publisher, Subscriber }
import org.reactivestreams.Subscription

import org.apache.pekko
import pekko.actor.{ Actor, ActorRef, Terminated }
import pekko.annotation.InternalApi

import org.reactivestreams.{ Publisher, Subscriber }
import org.reactivestreams.Subscription

/**
* INTERNAL API
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@

package org.apache.pekko.stream.impl

import java.util

import org.apache.pekko
import pekko.actor._
import pekko.annotation.InternalApi
import pekko.stream.Attributes.InputBuffer
import pekko.stream._
import pekko.stream.Attributes.InputBuffer
import pekko.stream.impl.Stages.DefaultAttributes
import pekko.stream.stage._

import java.util

/**
* INTERNAL API
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@

package org.apache.pekko.stream.impl

import org.reactivestreams.Subscription

import org.apache.pekko
import pekko.actor.DeadLetterSuppression
import pekko.actor.NoSerializationVerificationNeeded
import pekko.annotation.InternalApi

import org.reactivestreams.Subscription

/**
* INTERNAL API
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
package org.apache.pekko.stream.impl

import java.{ util => ju }

import org.apache.pekko
import pekko.annotation.{ InternalApi, InternalStableApi }
import pekko.stream._
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@

package org.apache.pekko.stream.impl

import org.reactivestreams.{ Publisher, Subscriber, Subscription }

import org.apache.pekko.annotation.InternalApi

import org.reactivestreams.{ Publisher, Subscriber, Subscription }

/**
* INTERNAL API
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

package org.apache.pekko.stream.impl

import org.reactivestreams.{ Subscriber, Subscription }

import org.apache.pekko
import pekko.actor._
import pekko.annotation.{ DoNotInherit, InternalApi }
Expand All @@ -23,6 +21,8 @@ import pekko.stream.ActorAttributes
import pekko.stream.Attributes
import pekko.util.unused

import org.reactivestreams.{ Subscriber, Subscription }

/**
* INTERNAL API
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ package org.apache.pekko.stream.impl

import scala.collection.immutable

import org.reactivestreams.Subscription

import org.apache.pekko
import pekko.actor._
import pekko.annotation.{ DoNotInherit, InternalApi }
Expand All @@ -25,6 +23,8 @@ import pekko.stream.ActorAttributes
import pekko.stream.Attributes
import pekko.util.unused

import org.reactivestreams.Subscription

/**
* INTERNAL API
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

package org.apache.pekko.stream.impl

import org.reactivestreams.Subscriber

import org.apache.pekko
import pekko.actor.Actor
import pekko.actor.ActorRef
Expand All @@ -26,6 +24,8 @@ import pekko.stream.Attributes
import pekko.stream.StreamSubscriptionTimeoutTerminationMode
import pekko.util.OptionVal

import org.reactivestreams.Subscriber

/**
* INTERNAL API
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
package org.apache.pekko.stream.impl

import scala.annotation.switch

import org.apache.pekko
import pekko.annotation.InternalApi
import pekko.stream.scaladsl.Framing.FramingException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ package org.apache.pekko.stream.impl

import scala.concurrent.{ Future, Promise }
import scala.util.control.NonFatal

import org.apache.pekko
import pekko.annotation.InternalApi
import pekko.stream.Attributes.SourceLocation
import pekko.stream._
import pekko.stream.Attributes.SourceLocation
import pekko.stream.impl.Stages.DefaultAttributes
import pekko.stream.scaladsl.{ Keep, Source }
import pekko.stream.stage._
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@

package org.apache.pekko.stream.impl

import scala.concurrent.Promise

import scala.annotation.nowarn
import scala.concurrent.Promise

import org.apache.pekko
import pekko.actor.Actor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ package org.apache.pekko.stream.impl

import scala.annotation.unchecked.uncheckedVariance

import org.reactivestreams._

import org.apache.pekko
import pekko.NotUsed
import pekko.annotation.{ DoNotInherit, InternalApi }
import pekko.event.Logging
import pekko.stream._
import pekko.stream.impl.StreamLayout.AtomicModule

import org.reactivestreams._

/**
* INTERNAL API
*/
Expand Down
Loading

0 comments on commit 764d307

Please sign in to comment.