Code Review Request: 7168172: (fs) Files.isReadable slow on Windows
Alan Bateman
Alan.Bateman at oracle.com
Fri Aug 24 04:17:15 PDT 2012
On 24/08/2012 12:00, Ulf Zibis wrote:
> :
>
>
> To my taste the line:
> WindowsPath file = WindowsPath.toWindowsPath(obj);
> ... should be moved to the place, where it is actually needed.
>
> -Ulf
>
It's just that in the original implementation that the parameters are
checked in order, in this case the path parameter is checked for null
and that it is associated with the right provider before it checks the
modes parameter.
-Alan
More information about the nio-dev
mailing list