-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 jpath in example #20775
Avoid jpath in example #20775
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest to highlight getJPath
as that still returns Option[java.nio.file.Path]
, then show path
(returning String
) as a fallback if you don't care if its virtual
Co-authored-by: Jamie Thompson <bishbashboshjt@gmail.com>
Co-authored-by: Jamie Thompson <bishbashboshjt@gmail.com>
I wouldn't do it that way, since the path is available as a string. But I'm not one to stand in the way of anything. |
Yeah I guess others might prefer to fail at runtime if you require the path to exist. |
Backports #20775 to the LTS branch. PR submitted by the release tooling. [skip ci]
Fixes #20591
[skip ci]