Skip to content

Commit

Permalink
fix error in codectest
Browse files Browse the repository at this point in the history
  • Loading branch information
rustagir committed Jun 29, 2024
1 parent f4b8613 commit ab3ca9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/src/test/kotlin/CodecTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ internal class CodecTest {

init {
powerStatusCodec = registry[PowerStatus::class.java]
integerCodec = registry.get(Int::class.java)
integerCodec = IntegerCodec()
}

override fun encode(writer: BsonWriter, value: Monolight, encoderContext: EncoderContext) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class MonolightCodec(registry: CodecRegistry) : Codec<Monolight> {

init {
powerStatusCodec = registry[PowerStatus::class.java]
integerCodec = registry.get(Int::class.java)
integerCodec = IntegerCodec()
}

override fun encode(writer: BsonWriter, value: Monolight, encoderContext: EncoderContext) {
Expand Down

0 comments on commit ab3ca9e

Please sign in to comment.