Unnecessary null checks in MongoConverters [DATAMONGO-2385] #3243
Very, very minor thing, but I noticed that many of the converters in MongoConverters null check their inputs, returning null when the input value is null.
However, per the documentation of the implemented Converter interface, the input argument to the "convert" method will never be null:
Unless these converters are being used in an atypical way, these null checks therefore appear to be unnecessary
Referenced from: pull request #802
The text was updated successfully, but these errors were encountered: