-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
status: waiting-for-triageAn issue we've not yet triagedAn issue we've not yet triaged
Milestone
Description
I was just debugging some stuff related to timestamps in mongo, and I saw this method: org.springframework.data.mongodb.util.BsonUtils#simpleToBsonValue(java.lang.Object, org.bson.codecs.configuration.CodecRegistry) (in version 4.5.4).
We can see that in this branch, it seems like a return is missing
if (source instanceof Date date) {
new BsonDateTime(date.getTime());
}
All the other branches above it return a value.
Is that missing return intentional? If so, why? Should it have a comment saying why it's different?
Or is this a bug or an oversight?
Metadata
Metadata
Assignees
Labels
status: waiting-for-triageAn issue we've not yet triagedAn issue we've not yet triaged