Skip to content

fixed IO-447#21

Closed
MengshiZhang wants to merge 1 commit into
apache:masterfrom
MengshiZhang:master
Closed

fixed IO-447#21
MengshiZhang wants to merge 1 commit into
apache:masterfrom
MengshiZhang:master

Conversation

@MengshiZhang

Copy link
Copy Markdown

No description provided.

@PascalSchumacher PascalSchumacher left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the pull request.

* @throws IOException if an error occurs, NullPointerException if path cannot be parsed by FilenameUtils.normalize()
*/
long freeSpaceWindows(String path, final long timeout) throws IOException {
long freeSpaceWindows(String path, final long timeout) throws IOException, NullPointerException {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

NullPointerException is a RuntimeException so it should be part of the method signature.

* is zero or less
* @return the amount of free drive space on the drive
* @throws IOException if an error occurs
* @throws IOException if an error occurs, NullPointerException if path cannot be parsed by FilenameUtils.normalize()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this should be a separate throws declaration

@asfgit asfgit closed this in 722a5af Apr 23, 2017
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