scalafix FinalObject - for scalafix ignored files

This commit is contained in:
Bùi Việt Thành 2020-04-06 15:16:52 +07:00
parent 4df76d6bce
commit 2c6e349c7e
5 changed files with 5 additions and 5 deletions

View file

@ -28,7 +28,7 @@ object GracefulStopDocSpec {
object MasterControlProgram {
sealed trait Command
final case class SpawnJob(name: String) extends Command
final case object GracefulShutdown extends Command
case object GracefulShutdown extends Command
// Predefined cleanup operation
def cleanup(log: Logger): Unit = log.info("Cleaning up!")

View file

@ -31,7 +31,7 @@ object StashDocSpec {
final case class Save(value: String, replyTo: ActorRef[Done]) extends Command
final case class Get(replyTo: ActorRef[String]) extends Command
private final case class InitialState(value: String) extends Command
private final case object SaveSuccess extends Command
private case object SaveSuccess extends Command
private final case class DBError(cause: Throwable) extends Command
def apply(id: String, db: DB): Behavior[Command] = {

View file

@ -34,7 +34,7 @@ object ReplicatorDocSpec {
// #sample
object Counter {
sealed trait Command
final case object Increment extends Command
case object Increment extends Command
final case class GetValue(replyTo: ActorRef[Int]) extends Command
final case class GetCachedValue(replyTo: ActorRef[Int]) extends Command
case object Unsubscribe extends Command

View file

@ -18,7 +18,7 @@ object PingPongExample {
val PingServiceKey = ServiceKey[Ping]("pingService")
final case class Ping(replyTo: ActorRef[Pong.type])
final case object Pong
case object Pong
def apply(): Behavior[Ping] = {
Behaviors.setup { context =>

View file

@ -85,7 +85,7 @@ object IntegrationDocSpec {
}
final case class Save(tweet: Tweet)
final case object SaveDone
case object SaveDone
class DatabaseService(probe: ActorRef) extends Actor {
override def receive = {