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

Path::toRealPath() can throw RuntimeExceptions, catch them #1679

Merged
merged 2 commits into from
Jan 30, 2019

Conversation

ivangalkin
Copy link
Contributor

@ivangalkin ivangalkin commented Jan 29, 2019

addresses #1678


This change is Reviewable

@ivangalkin ivangalkin changed the title Path::toRealPath() can throw RuntimeExceptions, catch them) Path::toRealPath() can throw RuntimeExceptions, catch them Jan 29, 2019
@guwirth guwirth added the bug label Jan 29, 2019
@guwirth guwirth added this to the 1.2.2 milestone Jan 29, 2019
@@ -143,10 +143,11 @@ private InputFile getInputFileTryRealPath(SensorContext sensorContext, String pa
Path realPath;
try {
realPath = absolutePath.toRealPath(LinkOption.NOFOLLOW_LINKS);
} catch (IOException e) {
// despite of API the RuntimeExceptions can be thrown too
Copy link
Collaborator

Choose a reason for hiding this comment

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

@ivangalkin this comment has no additional value

Copy link
Contributor Author

Choose a reason for hiding this comment

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

true, done

@guwirth guwirth merged commit ae15c86 into SonarOpenCommunity:master Jan 30, 2019
@guwirth
Copy link
Collaborator

guwirth commented Jan 30, 2019

@ivangalkin thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants