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

avoid flush repeatedly when has finished flushing #839

Merged
merged 4 commits into from
Jul 6, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/com/esotericsoftware/kryo/io/OutputChunked.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ public void flush () throws KryoException {
} catch (IOException ex) {
throw new KryoException(ex);
}
}else{
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please apply project formatting to your changes. There should be whitespace around the else.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thank you , i have formtted

super.flush();
}
super.flush();
}

private void writeChunkSize () throws IOException {
Expand Down