Should JsonWriter be closed?

Skip to first unread message
Message has been deleted

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
0 new messages