Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StringWriter does not overwrite toString #2

Open
ebardet opened this issue Apr 28, 2015 · 2 comments
Open

StringWriter does not overwrite toString #2

ebardet opened this issue Apr 28, 2015 · 2 comments

Comments

@ebardet
Copy link

ebardet commented Apr 28, 2015

Hello there,

I should think ca.weblite.codename1.json.StringWriter must overwrite toString, ie :
@OverRide
public String toString() {
return buf.toString();
}
My two pencents.
E

@shannah
Copy link
Owner

shannah commented Apr 29, 2015

I'm not sure that Writer classes usually have a toString() method. That's not really how they're supposed to be used.

@ebardet
Copy link
Author

ebardet commented Apr 29, 2015

Hello Steve,

Mmmh.. I guess in the case of StringWriter this makes sense since there is no way to access the buffer.

Cordialement/Best regards,

Emmanuel Bardet

Courriel : [email protected]
Port. : 06.58.30.59.65
Fax : 09.72.23.55.54
http://www.etceterum.fr

Le 29 avr. 2015 à 06:41, Steve Hannah [email protected] a écrit :

I'm not sure that Writer classes usually have a toString() method. That's not really how they're supposed to be used.


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants