Typo in javadoc of Path's .normalize()?

Alan Bateman Alan.Bateman at oracle.com
Sat Nov 29 15:09:31 UTC 2014


On 29/11/2014 14:02, Francis Galiegue wrote:
> Hello,
>
> In the documentation of the returned value of .normalize(), it is said
> that "[...]an empty path is returned if this path does have a root
> component and all name elements are redundant".
>
> s,does,does not,?
>
> It would be logical; for instance, on Unix systems,
> Paths.get("/.").normalize() returns "/", not "".
>
You are right, there is a typo here, this should red "does not have a 
root component". We'll get this fixed.

-Alan


More information about the nio-dev mailing list