Should JsonWriter be closed?

23 views
Skip to first unread message
Message has been deleted

singlet...@gmail.com

unread,
Aug 10, 2018, 12:23:33 PM8/10/18
to google-gson
When implementing the NomenclatureDetailAdapter.write(JsonWriter, NomenclatureDetail), should the JsonWriter be closed or is that the responsibility of Gson to perform this action. I have not been able to find any documentation on this and the examples do not show it, but generally writers as closed. I am a bit unsure on this because if the type adapter implementation is responsible for closing it, then it would significantly complicate custom type adapters and nesting.
Reply all
Reply to author
Forward
0 new messages