+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:
kerr 2020-04-27 20:32:18 +08:00 committed by GitHub
parent ea7205eaf7
commit 0e4d41ad33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1534 changed files with 7454 additions and 6165 deletions

View file

@ -4,10 +4,11 @@
package akka.stream.scaladsl
import akka.stream.testkit.scaladsl.StreamTestKit._
import akka.stream.testkit._
import org.reactivestreams.Publisher
import akka.stream.testkit._
import akka.stream.testkit.scaladsl.StreamTestKit._
class FlowMergeSpec extends BaseTwoStreamsSetup {
override type Outputs = Int
@ -130,8 +131,8 @@ class FlowMergeSpec extends BaseTwoStreamsSetup {
"works in number example for merge sorted" in {
//#merge-sorted
import akka.stream.scaladsl.Source
import akka.stream.scaladsl.Sink
import akka.stream.scaladsl.Source
val sourceA = Source(List(1, 3, 5, 7))
val sourceB = Source(List(2, 4, 6, 8))
@ -148,8 +149,8 @@ class FlowMergeSpec extends BaseTwoStreamsSetup {
"works in number example for merge" in {
//#merge
import akka.stream.scaladsl.Source
import akka.stream.scaladsl.Sink
import akka.stream.scaladsl.Source
val sourceA = Source(List(1, 2, 3, 4))
val sourceB = Source(List(10, 20, 30, 40))