+build Add sort imports support. (#28780)
* Add scalafix plugin for jdk 9. * Add command alias sortImports. * Excludes some sources from SortImports. * Update SortImports to 0.4.0 * Sort imports with `sortImports` command.
This commit is contained in:
parent
ea7205eaf7
commit
0e4d41ad33
1534 changed files with 7454 additions and 6165 deletions
|
|
@ -4,6 +4,10 @@
|
|||
|
||||
package akka.cluster.sharding
|
||||
|
||||
import scala.collection.immutable
|
||||
import scala.concurrent.Future
|
||||
import scala.concurrent.duration._
|
||||
|
||||
import akka.actor._
|
||||
import akka.cluster.sharding.ShardCoordinator.ShardAllocationStrategy
|
||||
import akka.pattern.ask
|
||||
|
|
@ -11,10 +15,6 @@ import akka.remote.testconductor.RoleName
|
|||
import akka.testkit._
|
||||
import akka.util.Timeout
|
||||
|
||||
import scala.collection.immutable
|
||||
import scala.concurrent.Future
|
||||
import scala.concurrent.duration._
|
||||
|
||||
object ClusterShardingCustomShardAllocationSpec {
|
||||
|
||||
case object AllocateReq
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@
|
|||
|
||||
package akka.cluster.sharding
|
||||
|
||||
import scala.concurrent.duration._
|
||||
|
||||
import akka.actor._
|
||||
import akka.cluster.sharding.ShardRegion.Passivate
|
||||
import akka.remote.testconductor.RoleName
|
||||
|
|
@ -12,8 +14,6 @@ import akka.serialization.jackson.CborSerializable
|
|||
import akka.testkit._
|
||||
import akka.util.ccompat._
|
||||
|
||||
import scala.concurrent.duration._
|
||||
|
||||
@ccompatUsedUntil213
|
||||
object ClusterShardingFailureSpec {
|
||||
case class Get(id: String) extends CborSerializable
|
||||
|
|
|
|||
|
|
@ -6,11 +6,12 @@ package akka.cluster.sharding
|
|||
|
||||
import scala.concurrent.duration._
|
||||
|
||||
import com.typesafe.config.ConfigFactory
|
||||
|
||||
import akka.actor._
|
||||
import akka.cluster.Cluster
|
||||
import akka.cluster.ClusterEvent.CurrentClusterState
|
||||
import akka.testkit.TestProbe
|
||||
import com.typesafe.config.ConfigFactory
|
||||
|
||||
object ClusterShardingGetStateSpec {
|
||||
import MultiNodeClusterShardingSpec.PingPongActor
|
||||
|
|
|
|||
|
|
@ -6,10 +6,11 @@ package akka.cluster.sharding
|
|||
|
||||
import scala.concurrent.duration._
|
||||
|
||||
import com.typesafe.config.ConfigFactory
|
||||
|
||||
import akka.actor._
|
||||
import akka.cluster.{ Cluster, MemberStatus }
|
||||
import akka.testkit.{ TestDuration, TestProbe }
|
||||
import com.typesafe.config.ConfigFactory
|
||||
|
||||
object ClusterShardingGetStatsSpec {
|
||||
import MultiNodeClusterShardingSpec.PingPongActor
|
||||
|
|
|
|||
|
|
@ -4,13 +4,13 @@
|
|||
|
||||
package akka.cluster.sharding
|
||||
|
||||
import scala.concurrent.duration._
|
||||
|
||||
import akka.actor._
|
||||
import akka.cluster.sharding.ShardRegion.GracefulShutdown
|
||||
import akka.remote.testconductor.RoleName
|
||||
import akka.testkit._
|
||||
|
||||
import scala.concurrent.duration._
|
||||
|
||||
abstract class ClusterShardingGracefulShutdownSpecConfig(mode: String)
|
||||
extends MultiNodeClusterShardingConfig(
|
||||
mode,
|
||||
|
|
|
|||
|
|
@ -4,14 +4,14 @@
|
|||
|
||||
package akka.cluster.sharding
|
||||
|
||||
import scala.concurrent.duration._
|
||||
|
||||
import akka.actor._
|
||||
import akka.cluster.MemberStatus
|
||||
import akka.cluster.sharding.ShardRegion.{ ClusterShardingStats, GetClusterShardingStats }
|
||||
import akka.testkit._
|
||||
import akka.util.ccompat._
|
||||
|
||||
import scala.concurrent.duration._
|
||||
|
||||
@ccompatUsedUntil213
|
||||
abstract class ClusterShardingMinMembersSpecConfig(mode: String)
|
||||
extends MultiNodeClusterShardingConfig(
|
||||
|
|
|
|||
|
|
@ -6,11 +6,12 @@ package akka.cluster.sharding
|
|||
|
||||
import scala.concurrent.duration._
|
||||
|
||||
import akka.actor.Props
|
||||
import akka.testkit.TestProbe
|
||||
import com.typesafe.config.ConfigFactory
|
||||
import org.scalatest.concurrent.ScalaFutures
|
||||
|
||||
import akka.actor.Props
|
||||
import akka.testkit.TestProbe
|
||||
|
||||
object ClusterShardingQueriesSpec {
|
||||
import MultiNodeClusterShardingSpec.PingPongActor
|
||||
|
||||
|
|
|
|||
|
|
@ -4,14 +4,14 @@
|
|||
|
||||
package akka.cluster.sharding
|
||||
|
||||
import scala.concurrent.Future
|
||||
import scala.concurrent.duration._
|
||||
|
||||
import akka.Done
|
||||
import akka.actor._
|
||||
import akka.cluster.MemberStatus
|
||||
import akka.testkit.{ ImplicitSender, TestProbe }
|
||||
|
||||
import scala.concurrent.Future
|
||||
import scala.concurrent.duration._
|
||||
|
||||
/**
|
||||
* Test for issue #28416
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -4,13 +4,14 @@
|
|||
|
||||
package akka.cluster.sharding
|
||||
|
||||
import scala.concurrent.duration._
|
||||
|
||||
import com.typesafe.config.ConfigFactory
|
||||
|
||||
import akka.actor._
|
||||
import akka.cluster.{ Cluster, MemberStatus }
|
||||
import akka.persistence.journal.leveldb.SharedLeveldbJournal
|
||||
import akka.testkit._
|
||||
import com.typesafe.config.ConfigFactory
|
||||
|
||||
import scala.concurrent.duration._
|
||||
|
||||
object ClusterShardingRememberEntitiesNewExtractorSpec {
|
||||
|
||||
|
|
|
|||
|
|
@ -6,13 +6,14 @@ package akka.cluster.sharding
|
|||
|
||||
import java.util.concurrent.TimeUnit.NANOSECONDS
|
||||
|
||||
import scala.concurrent.duration._
|
||||
|
||||
import com.typesafe.config.ConfigFactory
|
||||
|
||||
import akka.actor._
|
||||
import akka.cluster.MemberStatus
|
||||
import akka.testkit._
|
||||
import akka.util.ccompat._
|
||||
import com.typesafe.config.ConfigFactory
|
||||
|
||||
import scala.concurrent.duration._
|
||||
|
||||
@ccompatUsedUntil213
|
||||
object ClusterShardingRememberEntitiesPerfSpec {
|
||||
|
|
|
|||
|
|
@ -6,11 +6,12 @@ package akka.cluster.sharding
|
|||
|
||||
import scala.concurrent.duration._
|
||||
|
||||
import com.typesafe.config.ConfigFactory
|
||||
|
||||
import akka.actor._
|
||||
import akka.cluster.{ Cluster, MemberStatus }
|
||||
import akka.testkit._
|
||||
import akka.util.ccompat._
|
||||
import com.typesafe.config.ConfigFactory
|
||||
|
||||
@ccompatUsedUntil213
|
||||
object ClusterShardingRememberEntitiesSpec {
|
||||
|
|
|
|||
|
|
@ -4,12 +4,13 @@
|
|||
|
||||
package akka.cluster.sharding
|
||||
|
||||
import scala.concurrent.duration._
|
||||
|
||||
import com.typesafe.config.{ Config, ConfigFactory }
|
||||
|
||||
import akka.actor._
|
||||
import akka.cluster.sharding.ShardRegion.{ ClusterShardingStats, GetClusterShardingStats }
|
||||
import akka.testkit._
|
||||
import com.typesafe.config.{ Config, ConfigFactory }
|
||||
|
||||
import scala.concurrent.duration._
|
||||
|
||||
// Tests the case where cluster roles are used with cluster.min-nr-of-members, no per role min set
|
||||
// with 5 node cluster, 2 roles: 3 nodes role R1, 2 nodes role R2
|
||||
|
|
|
|||
|
|
@ -4,13 +4,13 @@
|
|||
|
||||
package akka.cluster.sharding
|
||||
|
||||
import scala.concurrent.duration._
|
||||
|
||||
import akka.actor._
|
||||
import akka.remote.testconductor.RoleName
|
||||
import akka.remote.transport.ThrottlerTransportAdapter.Direction
|
||||
import akka.testkit._
|
||||
|
||||
import scala.concurrent.duration._
|
||||
|
||||
/**
|
||||
* one-to-one mapping between shards and entities is not efficient but some use that anyway
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -4,6 +4,11 @@
|
|||
|
||||
package akka.cluster.sharding
|
||||
|
||||
import scala.concurrent.duration._
|
||||
import scala.language.postfixOps
|
||||
|
||||
import com.typesafe.config.ConfigFactory
|
||||
|
||||
import akka.actor._
|
||||
import akka.cluster.Cluster
|
||||
import akka.cluster.ddata.{ Replicator, ReplicatorSettings }
|
||||
|
|
@ -14,12 +19,8 @@ import akka.pattern.BackoffOpts
|
|||
import akka.persistence.{ Persistence, PersistentActor }
|
||||
import akka.persistence.journal.leveldb.{ SharedLeveldbJournal, SharedLeveldbStore }
|
||||
import akka.remote.testconductor.RoleName
|
||||
import akka.testkit.TestEvent.Mute
|
||||
import akka.testkit._
|
||||
import com.typesafe.config.ConfigFactory
|
||||
|
||||
import scala.concurrent.duration._
|
||||
import scala.language.postfixOps
|
||||
import akka.testkit.TestEvent.Mute
|
||||
|
||||
object ClusterShardingSpec {
|
||||
//#counter-actor
|
||||
|
|
|
|||
|
|
@ -4,15 +4,16 @@
|
|||
|
||||
package akka.cluster.sharding
|
||||
|
||||
import scala.concurrent.duration._
|
||||
|
||||
import org.scalatest.concurrent.ScalaFutures
|
||||
|
||||
import akka.actor.{ Actor, ActorLogging, Address, Props }
|
||||
import akka.cluster.Cluster
|
||||
import akka.cluster.sharding.ExternalShardAllocationSpec.GiveMeYourHome.{ Get, Home }
|
||||
import akka.cluster.sharding.external.{ ExternalShardAllocation, ExternalShardAllocationStrategy }
|
||||
import akka.serialization.jackson.CborSerializable
|
||||
import akka.testkit.{ ImplicitSender, TestProbe }
|
||||
import org.scalatest.concurrent.ScalaFutures
|
||||
|
||||
import scala.concurrent.duration._
|
||||
|
||||
object ExternalShardAllocationSpecConfig
|
||||
extends MultiNodeClusterShardingConfig(additionalConfig = """
|
||||
|
|
@ -68,8 +69,8 @@ abstract class ExternalShardAllocationSpec
|
|||
with ImplicitSender
|
||||
with ScalaFutures {
|
||||
|
||||
import ExternalShardAllocationSpec.GiveMeYourHome._
|
||||
import ExternalShardAllocationSpec._
|
||||
import ExternalShardAllocationSpec.GiveMeYourHome._
|
||||
import ExternalShardAllocationSpecConfig._
|
||||
|
||||
override implicit val patienceConfig: PatienceConfig = PatienceConfig(5.second)
|
||||
|
|
|
|||
|
|
@ -4,16 +4,17 @@
|
|||
|
||||
package akka.cluster.sharding
|
||||
|
||||
import scala.concurrent.duration._
|
||||
|
||||
import com.typesafe.config.ConfigFactory
|
||||
|
||||
import akka.actor.{ Actor, ActorRef, Address, Props }
|
||||
import akka.cluster.sharding.ShardRegion.{ CurrentRegions, GetCurrentRegions }
|
||||
import akka.cluster.{ Cluster, MemberStatus }
|
||||
import akka.cluster.sharding.ShardRegion.{ CurrentRegions, GetCurrentRegions }
|
||||
import akka.remote.testconductor.RoleName
|
||||
import akka.serialization.jackson.CborSerializable
|
||||
import akka.testkit._
|
||||
import akka.util.ccompat._
|
||||
import com.typesafe.config.ConfigFactory
|
||||
|
||||
import scala.concurrent.duration._
|
||||
|
||||
@ccompatUsedUntil213
|
||||
object MultiDcClusterShardingSpec {
|
||||
|
|
|
|||
|
|
@ -6,10 +6,11 @@ package akka.cluster.sharding
|
|||
|
||||
import java.lang.reflect.Modifier
|
||||
|
||||
import com.typesafe.config.{ Config, ConfigFactory }
|
||||
|
||||
import akka.cluster.MultiNodeClusterSpec
|
||||
import akka.persistence.journal.leveldb.SharedLeveldbJournal
|
||||
import akka.remote.testkit.MultiNodeConfig
|
||||
import com.typesafe.config.{ Config, ConfigFactory }
|
||||
|
||||
object MultiNodeClusterShardingConfig {
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,10 @@ package akka.cluster.sharding
|
|||
|
||||
import java.io.File
|
||||
|
||||
import scala.concurrent.duration._
|
||||
|
||||
import org.apache.commons.io.FileUtils
|
||||
|
||||
import akka.actor.{ Actor, ActorIdentity, ActorLogging, ActorRef, ActorSystem, Identify, PoisonPill, Props }
|
||||
import akka.cluster.MultiNodeClusterSpec
|
||||
import akka.cluster.sharding.ShardCoordinator.ShardAllocationStrategy
|
||||
|
|
@ -16,9 +20,6 @@ import akka.remote.testkit.MultiNodeSpec
|
|||
import akka.serialization.jackson.CborSerializable
|
||||
import akka.testkit.{ TestActors, TestProbe }
|
||||
import akka.util.ccompat._
|
||||
import org.apache.commons.io.FileUtils
|
||||
|
||||
import scala.concurrent.duration._
|
||||
|
||||
@ccompatUsedUntil213
|
||||
object MultiNodeClusterShardingSpec {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue