8066943: (fs) Path.relativize() gives incorrect result for ".."
Alan Bateman
Alan.Bateman at oracle.com
Wed Aug 24 19:31:14 UTC 2016
On 24/08/2016 20:28, Pavel Rappo wrote:
> Hi Alan,
>
> 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.
-Alan
More information about the nio-dev
mailing list