-
Notifications
You must be signed in to change notification settings - Fork 692
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
SOLR-16903: Update CLI tools to use java.nio.file.Path instead of java.io.File #2883
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.
LGTM. One tiny nit pick... I love to see these refactorings happening!
@@ -281,15 +281,15 @@ public void testAppendUrlPath() { | |||
@Test | |||
public void testGuessType() { | |||
File f = new File("foo.doc"); |
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.
total nit pick, but would declaring the File f
as a Path p
save a .toPath
???
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.
Yes - but I thought it was best to update the test files separately and at a later point.
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.
awesome!
@AndreyBozhko let me know when you feel the PR is ready...! |
@epugh Thanks, I think this piece is ready. |
Since this is purely a refactoring, skipping CHANGES.txt. I am going to apply this to |
@AndreyBozhko please do tag me as you keep doing these! I also like to keep an eye on https://ci-builds.apache.org/job/Solr/job/Solr-Test-main/ to make sure things remain good as these changes are made! |
https://issues.apache.org/jira/browse/SOLR-16903
Description
I would like to work on SOLR-16903 - this PR only addresses part of it.
Here, I'm migrating the CLI tools from using
java.io.File
tojava.nio.file.Path
APIs.Checklist
Please review the following and check all that apply:
main
branch../gradlew check
.