You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, Gson can generate a String or write to a Writer. This can result in
unnecessary temporary
String objects when the user wants to embed Gson in a larger response. Both
StringBuilder and
Writer share a common interface however: Appendable. Since it is unlikely that
the flush and close
methods are called on Writer while serializing, consider either adding
Appendable as a destination
or replacing Writable with Appendable as the stream output type.
Original issue reported on code.google.com by complexm...@gmail.com on 1 Oct 2008 at 9:32
The text was updated successfully, but these errors were encountered:
Fixed in r315
Note that this breaks backwards binary compatibility while preserving backwards
source compatibility. This is so because we changed the toJson() method
signatures
instead of adding new methods. However, since Appendable is a super class of
Writer,
a simple recompilation of code should be sufficient. Since this bug fix will go
in a
major release, this is acceptable.
Original comment by inder123 on 26 Nov 2008 at 7:15
Original issue reported on code.google.com by
complexm...@gmail.com
on 1 Oct 2008 at 9:32The text was updated successfully, but these errors were encountered: