Compiler warnings for actor-tests and remote-tests (#26685)

This commit is contained in:
Christopher Batey 2019-04-15 09:54:16 +01:00 committed by Arnout Engelen
parent 4399e499c4
commit 10e525062a
93 changed files with 439 additions and 387 deletions

View file

@ -5,11 +5,11 @@
package akka.dispatch
import language.postfixOps
import com.typesafe.config.Config
import akka.actor.{ Actor, ActorSystem, Props }
import akka.testkit.{ AkkaSpec, DefaultTimeout }
import akka.util.unused
import scala.concurrent.duration._
object StablePriorityDispatcherSpec {
@ -22,17 +22,17 @@ object StablePriorityDispatcherSpec {
}
"""
class Unbounded(settings: ActorSystem.Settings, config: Config)
class Unbounded(@unused settings: ActorSystem.Settings, @unused config: Config)
extends UnboundedStablePriorityMailbox(PriorityGenerator({
case i: Int if i <= 100 => i // Small integers have high priority
case i: Int => 101 // Don't care for other integers
case _: Int => 101 // Don't care for other integers
case 'Result => Int.MaxValue
}: Any => Int))
class Bounded(settings: ActorSystem.Settings, config: Config)
class Bounded(@unused settings: ActorSystem.Settings, @unused config: Config)
extends BoundedStablePriorityMailbox(PriorityGenerator({
case i: Int if i <= 100 => i // Small integers have high priority
case i: Int => 101 // Don't care for other integers
case _: Int => 101 // Don't care for other integers
case 'Result => Int.MaxValue
}: Any => Int), 1000, 10 seconds)
@ -61,7 +61,7 @@ class StablePriorityDispatcherSpec extends AkkaSpec(StablePriorityDispatcherSpec
// with RepointableActorRef, since messages might be queued in
// UnstartedCell and then sent to the StablePriorityQueue and consumed immediately
// without the ordering taking place.
val actor = system.actorOf(Props(new Actor {
system.actorOf(Props(new Actor {
context.actorOf(Props(new Actor {
val acc = scala.collection.mutable.ListBuffer[Int]()