Skip to content

Conversation

@swankjesse
Copy link

No description provided.

@cowtowncoder cowtowncoder merged commit 74a1f78 into cowtowncoder:master May 31, 2016
@cowtowncoder
Copy link
Owner

Thanks!

w.close();
BufferedSink sink = Okio.buffer(Okio.sink(out));
adapter.toJson(sink, items);
return items.size();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing sink.emit()? You might leave this method with unflushed bytes.

@cowtowncoder
Copy link
Owner

@swankjesse any objections to adding emit() call there? Ideally I'd add verification step which should make it easier to catch potential non-flushing issues by verifying results.

@swankjesse
Copy link
Author

Yeah, that's a good idea. Emit or flush or close will all work.

@cowtowncoder
Copy link
Owner

Thanks; added close, which also removes compiler warning.

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

Successfully merging this pull request may close these issues.

3 participants