Merge pull request #7819 from xuwei-k/ControlEvent-Enumeration

[2.x] use `enum` instead of `scala.Enumeration` in `scala.util.LogEvent`
This commit is contained in:
eugene yokota 2025-01-05 18:25:37 -05:00 committed by GitHub
commit 07378b4a69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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
}
}