Skip to content

Conversation

@rozza
Copy link
Member

@rozza rozza commented Feb 9, 2026

Fixed no comment warning in BinaryVector
Improved BsonBinary asUuid documentation
Improved BsonBinarySubType isUuid documentation

JAVA-6086

Fixed no comment warning in BinaryVector
Improved BsonBinary asUuid documentation
Improved BsonBinarySubType isUuid documentation

JAVA-6086
@rozza rozza requested a review from a team as a code owner February 9, 2026 17:11
@rozza rozza requested a review from strogiyotec February 9, 2026 17:11
* @see BsonBinarySubType
* @since 3.9
*/
public UUID asUuid() {
Copy link
Contributor

Choose a reason for hiding this comment

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

should we change the method signature to reflect the throws documentation ?
UUID asUuid() throws BsonInvalidOperationException

Copy link
Member Author

Choose a reason for hiding this comment

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

Its a good point, however, it would introduce a new convention. For runtime errors we generally don't use checked exception patterns in the driver.

* {@link UuidRepresentation#JAVA_LEGACY}.
* @since 3.9
*/
public UUID asUuid(final UuidRepresentation uuidRepresentation) {
Copy link
Contributor

Choose a reason for hiding this comment

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

same here should we add throws to method signature ?
https://github.com/mongodb/mongo-java-driver/pull/1883/changes#r2783802952

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