Skip to content

Commit ba958e4

Browse files
committed
Remove Kotlin 1.9+ features from DebugAdapter
1 parent 0c4733e commit ba958e4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Common/src/main/kotlin/gay/object/hexdebug/adapter/DebugAdapter.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,14 @@ open class DebugAdapter(val player: ServerPlayer) : IDebugProtocolServer {
140140
supportsLoadedSourcesRequest = true
141141
supportsTerminateRequest = true
142142
supportsRestartRequest = true
143-
exceptionBreakpointFilters = ExceptionBreakpointType.entries.map {
143+
exceptionBreakpointFilters = ExceptionBreakpointType.values().map {
144144
ExceptionBreakpointsFilter().apply {
145145
filter = it.name
146146
label = it.label
147147
default_ = it.isDefault
148148
}
149149
}.toTypedArray()
150-
breakpointModes = SourceBreakpointMode.entries.map {
150+
breakpointModes = SourceBreakpointMode.values().map {
151151
BreakpointMode().apply {
152152
mode = it.name
153153
label = it.label

Common/src/main/kotlin/gay/object/hexdebug/adapter/DebugAdapterState.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import org.eclipse.lsp4j.debug.InitializeRequestArguments
77
sealed interface DebugAdapterState {
88
val initArgs: InitializeRequestArguments? get() = null
99

10-
data object NotConnected : DebugAdapterState
10+
object NotConnected : DebugAdapterState
1111

1212
data class Initialized(override val initArgs: InitializeRequestArguments) : DebugAdapterState
1313

0 commit comments

Comments
 (0)