Even putIfAbsent doesn't completely solve your problem.
e.g. what if something just adds something while you're doing the merge?
Or is that what you meant by "For simple values this will probably be fine"?
But then the first one wins. :-)
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266803#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...