X Tutup
Skip to content

Improve close behavior some.#700

Merged
k8s-ci-robot merged 1 commit intokubernetes-client:masterfrom
brendandburns:close
Sep 20, 2019
Merged

Improve close behavior some.#700
k8s-ci-robot merged 1 commit intokubernetes-client:masterfrom
brendandburns:close

Conversation

@brendandburns
Copy link
Copy Markdown
Contributor

Possible fixes for #687

@ceeaspb

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Sep 11, 2019
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: brendandburns

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 11, 2019
protected void handleMessage(int stream, InputStream inStream) throws IOException {
OutputStream out = getSocketInputOutputStream(stream);
ByteStreams.copy(inStream, out);
inStream.close();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: how about closing the stream in a try-finally block?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done.

@brendandburns
Copy link
Copy Markdown
Contributor Author

Comment addressed please take another look.

@yue9944882
Copy link
Copy Markdown
Member

[ERROR] To fix formatting errors, run "mvn fmt:format"
[ERROR] Non complying file: /home/travis/build/kubernetes-client/java/util/src/main/java/io/kubernetes/client/util/WebSocketStreamHandler.java

ci is failing on formatting error

@brendandburns
Copy link
Copy Markdown
Contributor Author

CI is fixed. THanks!

Copy link
Copy Markdown
Member

@yue9944882 yue9944882 left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 20, 2019
@k8s-ci-robot k8s-ci-robot merged commit 44ee6ad into kubernetes-client:master Sep 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

X Tutup