8066943: (fs) Path.relativize() gives incorrect result for ".."
Brian Burkhalter
brian.burkhalter at oracle.com
Wed Aug 24 20:04:13 UTC 2016
On Aug 24, 2016, at 12:31 PM, Alan Bateman <Alan.Bateman at oracle.com> wrote:
>> You don't like "for" loops, do you? :-)
>>
>> for (int i = 0; i < getNameCount(); i++) {
>> ...
>> }
>> instead of:
>>
>> int n = getNameCount();
>> int i = 0;
>> while (i < n) {
>> ...
>> i++;
>> }
>>
> You are right for the loop in hasDotOrDotDot, I'll fix that. But the other loops use i outside of the loop.
I think this looks good subsequent to the aforementioned change.
Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20160824/6d673b06/attachment.html>
More information about the nio-dev
mailing list