File tree Expand file tree Collapse file tree
module-ped-bson/src/commonMain/kotlin Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -300,17 +300,17 @@ typealias BsonIdCodec = BsonIDCodec
300300 *
301301 * @since 2.0.0
302302 */
303- object BsonIDCodec : BsonCodec<ID<* >> {
303+ object BsonIDCodec : BsonCodec<ID<Any? >> {
304304 override fun encode (value : Any? ) =
305- tryInlineCodec(value) { it: ID <* > ->
305+ tryInlineCodec(value) { it: ID <Any ? > ->
306306 success(it.bson)
307307 }
308308
309309 override fun decode (value : Any? ) =
310310 tryInlineCodec(value) { it: BsonElement ->
311311 when (it) {
312- is BsonObjectId -> success(ID <Any >(it.value))
313- is BsonString -> success(ID (it.value))
312+ is BsonObjectId -> success(ID <Any ? >(it.value))
313+ is BsonString -> success(ID < Any ?> (it.value))
314314 else -> failure(
315315 CodecException (
316316 " Cannot decode ${it::class } ; expected either " +
You can’t perform that action at this time.
0 commit comments