Closed tkieft closed 9 years ago
You could save just as many methods if you made the String <-> Object serializer/deserializer optional. :)
String <-> Object do you think that's actually a good idea? The reason I did this is that we rarely use serializers, and this also saves us from writing serializeCodeFormatters.
I guess we mostly use the parseFromJson(jp) version, but for serializers I imagine the String version is more widely used.
We mostly just use parseFromJson(jp)
, and we mostly just use serializeToJson(JsonGenerator,...
Only the top-level objects would ever use the string versions.
@ttung good point. I suppose that could be a separate feature request :)
ping?
Sorry. Github is not the greatest at notifying when a PR has been updated. As in it doesn't.
This will allow the user to enable or disable the generation of serializer code on a per-class or global basis, saving on code size and method count.