{"shas":[["9ffe2cafafe1264054d3a26e0e3f10b063775787","394773d6fd8ee06feb6c7da917869ac678252fa0@0c6e7542-c601-0410-84e7-c038aed88b3b","Replace Bag by MultiMap.\nBoth collections are quite similar, but there is a technical difference: Bag is backed by an ArrayList and MultiMap by a LinkedHashSet. So with a Bag you could map a key multiple times to a certain value. I haven't found any usage where this behaviour is required or intended.\nAlso there could be a certain performance drawback with LinkedHashSet compared to ArrayList. However in the typical validator use case the value collection represents duplicate or crossing ways, so the number of elements is usually 1 or 2 and mostly smaller than the initial capacity (LHS=16, AL=10). (But I could have overlooked some use cases.)\n\n\ngit-svn-id: http://josm.openstreetmap.de/svn/trunk@3674 0c6e7542-c601-0410-84e7-c038aed88b3b","bastiK"]],"ref":"refs/heads/master","push_id":20518817,"head":"9ffe2cafafe1264054d3a26e0e3f10b063775787","size":1}