Skip to content

Commit e5138e2

Browse files
authored
Update MIGRATION_GUIDE.md
1 parent ddb6ed3 commit e5138e2

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

MIGRATION_GUIDE.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ This migration guide covers the breaking changes introduced in the command type
2020
```kotlin
2121
// Unit commands (no result)
2222
interface Command {
23-
val type: Class<out Command> get() = this::class.java
2423
}
2524

2625
interface CommandHandler<TCommand : Command> {
@@ -29,7 +28,6 @@ interface CommandHandler<TCommand : Command> {
2928

3029
// Commands with results
3130
interface CommandWithResult<TResult> {
32-
val type: Class<out CommandWithResult<TResult>> get() = this::class.java
3331
}
3432

3533
interface CommandWithResultHandler<TCommand : CommandWithResult<TResult>, TResult> {
@@ -42,8 +40,6 @@ interface CommandWithResultHandler<TCommand : CommandWithResult<TResult>, TResul
4240
```kotlin
4341
// Unified command interface
4442
interface Command<TResult> {
45-
val type: Class<out Command<TResult>> get() = this::class.java
46-
4743
// Nested interface for unit commands
4844
interface Unit : Command<kotlin.Unit>
4945
}

0 commit comments

Comments
 (0)