use enum instead of scala.Enumeration

This commit is contained in:
xuwei-k 2024-10-23 12:39:33 +09:00 committed by kenji yoshida
parent 7f86575314
commit 358f2d9fdc
1 changed files with 6 additions and 2 deletions

View File

@ -17,6 +17,10 @@ final class SetTrace(val level: Int) extends LogEvent
final class SetSuccess(val enabled: Boolean) extends LogEvent
final class ControlEvent(val event: ControlEvent.Value, val msg: String) extends LogEvent
object ControlEvent extends Enumeration {
val Start, Header, Finish = Value
object ControlEvent {
enum Value {
case Start
case Header
case Finish
}
}