mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-23 17:27:16 +03:00
c1e817d1a9
According to the output documentation, |MultiMap.get| is supposed to return null "if no such key exists". However, in the case that an object is added to the map and then removed, |MultiMap.get| will return an empty array instead of null. This inconsistency could be relevant for code that tests based on the truthiness of the output, so this CL changes the remove method to delete the array for a given key if it becomes empty. This also adds unit tests for MultiMap. Change-Id: I049fece920883e1cb10c319a3f00156be4ee011b