Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 63f94fb

Browse files
authored
Update the DEFAULT_CODEC_REGISTRY order (#1795)
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 daa7cbd commit 63f94fb

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)

AltStyle によって変換されたページ (->オリジナル) /