|
Author:
{'name': 'Ross Lawley', 'username': 'rozza', 'email': 'ross.lawley@gmail.com'}
Message: Clarify the intention when getting or creating PropertyMetadata
Coverity did not like the possibility of the method returning null.
There was no risk for a NPE as the code was protected by the PropertyTypeCheck
Enum. However, it was overly complex, so splitting out the logic for
methods and fields reduces the risk of a regression in the future.
JAVA-2725
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/20d394b0320855269f4a0f11facd819f6f9e401f
|