Remove some of Unused import warning (#24650)

This commit is contained in:
Jimin Hsieh 2018-03-16 19:08:29 +08:00 committed by Arnout Engelen
parent a878e6c9fa
commit 2c2b8ba001
150 changed files with 85 additions and 323 deletions

View file

@ -164,7 +164,6 @@ class CoordinatedShutdownSpec extends AkkaSpec(ConfigFactory.parseString(
}
"run from a given phase" in {
import system.dispatcher
val phases = Map(
"a" emptyPhase,
"b" phase("a"),
@ -188,7 +187,6 @@ class CoordinatedShutdownSpec extends AkkaSpec(ConfigFactory.parseString(
}
"only run once" in {
import system.dispatcher
val phases = Map("a" emptyPhase)
val co = new CoordinatedShutdown(extSys, phases)
co.addTask("a", "a1") { ()
@ -244,7 +242,6 @@ class CoordinatedShutdownSpec extends AkkaSpec(ConfigFactory.parseString(
}
"abort if recover=off" in {
import system.dispatcher
val phases = Map(
"a" emptyPhase,
"b" Phase(dependsOn = Set("a"), timeout = 100.millis, recover = false, enabled = true),
@ -288,7 +285,6 @@ class CoordinatedShutdownSpec extends AkkaSpec(ConfigFactory.parseString(
}
"be possible to add tasks in later phase from task in earlier phase" in {
import system.dispatcher
val phases = Map(
"a" emptyPhase,
"b" phase("a"))

View file

@ -19,7 +19,7 @@ import org.scalatest.{ BeforeAndAfterAll, BeforeAndAfterEach }
import scala.annotation.tailrec
import scala.collection.immutable
import scala.concurrent.duration._
import scala.concurrent.{ Await, Future, Promise }
import scala.concurrent.{ Await, Future }
import scala.language.postfixOps
object TypedActorSpec {

View file

@ -4,8 +4,6 @@
package akka.actor.dungeon
import java.io.NotSerializableException
import akka.actor.Actor
import akka.actor.Props

View file

@ -4,8 +4,8 @@
package akka.io
import java.io.{ File, IOException }
import java.net.{ InetSocketAddress, ServerSocket, URLClassLoader }
import java.io.IOException
import java.net.{ InetSocketAddress, ServerSocket }
import java.nio.ByteBuffer
import java.nio.channels._
import java.nio.channels.spi.SelectorProvider

View file

@ -7,7 +7,6 @@ package akka.pattern
import akka.actor._
import akka.testkit.{ TestProbe, AkkaSpec }
import akka.util.Timeout
import org.scalatest.concurrent.ScalaFutures
import scala.concurrent.Await
import scala.concurrent.duration._

View file

@ -6,7 +6,6 @@ package akka.pattern
import akka.actor._
import akka.testkit.{ AkkaSpec, TestProbe, ImplicitSender }
import org.scalatest.concurrent.ScalaFutures
import scala.concurrent.Promise
import scala.concurrent.duration._

View file

@ -7,7 +7,6 @@ package akka.pattern.extended
import akka.actor._
import akka.testkit.AkkaSpec
import akka.util.Timeout
import org.scalatest.concurrent.ScalaFutures
import scala.concurrent.duration._
object ExplicitAskSpec {

View file

@ -10,7 +10,7 @@ import java.util.{ BitSet ⇒ ProgrammaticJavaDummy }
import java.util.{ Date SerializableDummy }
import akka.actor.setup.ActorSystemSetup
import akka.actor.{ ActorSystem, BootstrapSetup, ExtendedActorSystem, Terminated }
import akka.actor.{ ActorSystem, BootstrapSetup, ExtendedActorSystem }
import akka.testkit.{ AkkaSpec, TestKit, TestProbe }
import com.typesafe.config.ConfigFactory