Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert making BsonEncoder / BsonDecoder internal #1510

Merged
merged 3 commits into from
Sep 24, 2024
Merged

Conversation

rozza
Copy link
Member

@rozza rozza commented Sep 24, 2024

Made BsonEncoder / Decoder internal as part of the JsonElement support, however, this reduces the flexibility of the API and that change should be reverted

JAVA-5623

Made BsonEncoder / Decoder internal as part of the JsonElement support,
however, this reduces the flexibility of the API and that change should
be reverted

JAVA-5623
@rozza rozza requested a review from nhachicha September 24, 2024 10:38
@rozza
Copy link
Member Author

rozza commented Sep 24, 2024

In 7e4661c I made the BsonEncoder / BsonDecoder interfaces internal which wasn't a good idea. This PR reverts that by making them public again.

@rozza rozza requested a review from vbabanin September 24, 2024 13:43
@rozza rozza requested a review from nhachicha September 24, 2024 15:57
Copy link
Contributor

@nhachicha nhachicha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🎉

import org.bson.codecs.kotlinx.JsonBsonPolymorphicDecoder

@ExperimentalSerializationApi
internal object BsonEncoderDecoderUtils {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpicking 🤓 this could be named BsonCodecUtils since by definition a codec uses an Encoder and Decoder

@rozza rozza merged commit a5dc456 into mongodb:master Sep 24, 2024
2 of 3 checks passed
@rozza rozza deleted the JAVA-5623 branch September 24, 2024 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants