Skip to content

Conversation

@kamaci
Copy link
Member

@kamaci kamaci commented Dec 23, 2017

Closed file system.

} finally {
if (fs != null) {
try {
fs.close();
Copy link
Member

Choose a reason for hiding this comment

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

The fs variable is used later on in the method so it shouldn't be closed in the finally block. Maybe all uses of fs in the method should be wrapped with a try-with-resources block.

@kamaci
Copy link
Member Author

kamaci commented Jan 1, 2018

@mikewalch Could you check it again?

Copy link
Member

@mikewalch mikewalch left a comment

Choose a reason for hiding this comment

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

Looks good. When I get a successful TravisCI build, I will merge it.

@mikewalch mikewalch merged commit d45f1f7 into apache:master Jan 2, 2018
@mikewalch mikewalch added this to the 1.2.0 milestone Jan 11, 2018
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.

2 participants