Drop VirtualMap.getForModify() API #16784
Labels
Platform Data Structures
Platform Virtual Map
Platform
Tickets pertaining to the platform
Tech Debt Reduced
Issues which reduce technical debt.
VirtualMap
provides java.util.Map like API, but besides that - a weird methodgetForModify()
. This method is similar toget()
: it returns a value from the map, or null if the corresponding key is not in the map. The key difference betweenget()
andgetForModify()
is that the value returned by the latter can be changed later, and these changes will be reflected in the map.There are a few concerns about it:
put()
to the map may still change the value in the mapgetForModify()
, followed by object copy, then the copy is modified, andput()
back to the map explicitlyBytes
for both keys and values,getForModify()
will still be impossible to implement, sinceBytes
objects are immutable, tooThis ticket is to get rid of
getForModify()
inVirtualMap
and all services code. This is already a part of #16699, but it can be done as a separate fix to reduce the scope of 16699 (which is huge even without this part).The text was updated successfully, but these errors were encountered: