=all #3858 Make case classes final
This commit is contained in:
parent
dfef14a590
commit
2cbad298d6
189 changed files with 766 additions and 767 deletions
|
|
@ -24,13 +24,13 @@ object ConsistentHashingRouterDocSpec {
|
|||
}
|
||||
}
|
||||
|
||||
case class Evict(key: String)
|
||||
final case class Evict(key: String)
|
||||
|
||||
case class Get(key: String) extends ConsistentHashable {
|
||||
final case class Get(key: String) extends ConsistentHashable {
|
||||
override def consistentHashKey: Any = key
|
||||
}
|
||||
|
||||
case class Entry(key: String, value: String)
|
||||
final case class Entry(key: String, value: String)
|
||||
//#cache-actor
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ akka.actor.deployment {
|
|||
}
|
||||
|
||||
//#unit-test-logic
|
||||
case class TestRoutee(n: Int) extends Routee {
|
||||
final case class TestRoutee(n: Int) extends Routee {
|
||||
override def send(message: Any, sender: ActorRef): Unit = ()
|
||||
}
|
||||
|
||||
|
|
@ -77,7 +77,7 @@ import akka.routing.Router
|
|||
import akka.japi.Util.immutableSeq
|
||||
import com.typesafe.config.Config
|
||||
|
||||
case class RedundancyGroup(override val paths: immutable.Iterable[String], nbrCopies: Int) extends Group {
|
||||
final case class RedundancyGroup(override val paths: immutable.Iterable[String], nbrCopies: Int) extends Group {
|
||||
|
||||
def this(config: Config) = this(
|
||||
paths = immutableSeq(config.getStringList("routees.paths")),
|
||||
|
|
|
|||
|
|
@ -200,7 +200,7 @@ akka.actor.deployment {
|
|||
router-dispatcher {}
|
||||
"""
|
||||
|
||||
case class Work(payload: String)
|
||||
final case class Work(payload: String)
|
||||
|
||||
//#router-in-actor
|
||||
import akka.routing.ActorRefRoutee
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue