Niclas Hedhman a écrit : > I am just a bit worried about looping the maps.
Right, keys are looped once with a predicate, and then entries are looped once for actual serialization. We can't get a handle on the ParameterizedType there due to type erasure because we don't have an enclosing class. What we could do is look at the first entry in the map instead of looking at all of them. But this would break some use cases with mixed keys that actually work.