Skip to content

Commit 2399344

Browse files
committed
Update the DEFAULT_CODEC_REGISTRY order
Ensure that KotlinCodecProvider is used to handle any kotlin types first, then fall back to any native java codecs. For non kotlin users this will be a NOOP as the actual kotlin codec providers won't be on the class path JAVA-5928
1 parent 44e7add commit 2399344

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

driver-core/src/main/com/mongodb/MongoClientSettings.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ public final class MongoClientSettings {
8383
new Jsr310CodecProvider(),
8484
new JsonObjectCodecProvider(),
8585
new BsonCodecProvider(),
86-
new EnumCodecProvider(),
8786
new ExpressionCodecProvider(),
8887
new Jep395RecordCodecProvider(),
89-
new KotlinCodecProvider()));
88+
new KotlinCodecProvider(),
89+
new EnumCodecProvider()));
9090

9191
private final ReadPreference readPreference;
9292
private final WriteConcern writeConcern;

0 commit comments

Comments
 (0)