remove(0) on a list having just one element in a map is making the map property disappear from an entity while saving to google datastore using objectify.
"map" is a property in the datastore entity.
Map<String, List<String>> map;
Saving after the following code causes the map property to disappear from datastore when the list corresponding to the key "dress" has just one element even if corresponding to other keys there are lists with any number of elements.
map.get("dress").remove(0)
Note: the issue does not happen when there is more than one element in the list.
mapto be discarded, or does it only cause that entry to be discarded? The latter would not surprise me, though I cannot find anything in the docs about it. - Eric Simonton