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

Fix documentation of ClientEncryptionSettings#keyVaultMongoClientSett… #1087

Merged
merged 3 commits into from
Feb 22, 2023

Conversation

jyemin
Copy link
Contributor

@jyemin jyemin commented Feb 15, 2023

…ings property to indicate it can't be null

  • Update Javadoc
  • Add notNull assertion in ClientEncryptionSettings constructor
  • Remove unnecessary null checks and corresponding SpotBugs exclusions for them

JAVA-4861

…ings property to indicate it can't be null

* Update Javadoc
* Add notNull assertion in ClientEncryptionSettings constructor
* Remove unnecessary null checks and corresponding SpotBugs exclusions for them

JAVA-4861
@jyemin jyemin self-assigned this Feb 15, 2023
Copy link
Contributor

@katcharov katcharov left a comment

Choose a reason for hiding this comment

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

lgtm

@jyemin
Copy link
Contributor Author

jyemin commented Feb 16, 2023

Tests were failing. One fix was obvious but the one to the unified tests was less so. And I think the issue there was why the settings were made pseudo-nullable before this patch. It's because the unified tests require that a MongoClient entity be used as the key vault client, which the Java driver does not allow. So a private API was added to allow it and the settings were not required to be non-null to allow the tests to work. I addressed that by just setting the property in the unified tests even though its value is ignored by the private API.

Copy link
Contributor

@katcharov katcharov left a comment

Choose a reason for hiding this comment

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

lgtm

@jyemin jyemin merged commit a19fad2 into mongodb:master Feb 22, 2023
@jyemin jyemin deleted the j4861 branch February 22, 2023 15:46
ispringer pushed a commit to evergage/mongo-java-driver that referenced this pull request May 16, 2023
mongodb#1087)

* Update Javadoc
* Add notNull assertion in ClientEncryptionSettings constructor
* Remove unnecessary null checks and corresponding SpotBugs exclusions for them

JAVA-4861
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants