-
-
Notifications
You must be signed in to change notification settings - Fork 287
Reduce duplication in directory delete utils #1108
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
Conversation
ittaiz
left a comment
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.
Very much in favor of the PR in general. See two questions inside
| import java.nio.file.*; | ||
| import java.nio.file.attribute.BasicFileAttributes; | ||
|
|
||
| public class DeleteRecursively { |
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.
why not keep this implementation? Sounds better without the sort
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.
why not keep this implementation? Sounds better without the sort
I left the stream based version, because I felt it has less boilerplate code
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.
On the other hand it sorts and this one doesn't so it sounds more performant and we're already trying to optimize our perf
4c563f9 to
5fab80b
Compare
|
@liucijus if you can minimize force pushing it would really help me review the code (github has better abilities to see new changes) |
5fab80b to
d2a7379
Compare
|
Unfortunately I had to force push to not to mess on top of orginal authorship of the code. |
|
failure is due to github |
There are multiple implementation of recursive directory deletion utils. Let's have single implementation.