You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As stated in a Spring Data forum postMongodbSerializer recursively calls visit(…) for any() path types passing an empty expression to the call. This results in getKeyForPath(…) being called with an empty expression which is actually not necessary as looking up a key for no expression hardly makes sense. Beyond that, potential subclasses have to deal with that case explicitly which complicates the implementation.
Long story short, the call to getKeyForPath(…) can be delayed into the else clause, avoiding that obsolete call.
The text was updated successfully, but these errors were encountered:
As stated in a Spring Data forum post
MongodbSerializer
recursively callsvisit(…)
forany()
path types passing an empty expression to the call. This results ingetKeyForPath(…)
being called with an empty expression which is actually not necessary as looking up a key for no expression hardly makes sense. Beyond that, potential subclasses have to deal with that case explicitly which complicates the implementation.Long story short, the call to
getKeyForPath(…)
can be delayed into theelse
clause, avoiding that obsolete call.The text was updated successfully, but these errors were encountered: