RFR 8057113: (fs) Path should have a method to test the filename extension

Brian Burkhalter brian.burkhalter at oracle.com
Thu Feb 15 20:50:50 UTC 2018


Hi Roger,

On Feb 15, 2018, at 12:18 PM, Roger Riggs <Roger.Riggs at oracle.com> wrote:

> Possibly a premature optimization but the API spec should say "as if getFileName()".
> Perhaps the implementation can avoid actually creating a new Path and just look
> at the last element to extract the extension

That’s what I was thinking as well inspired by Daniel’s comment.

Thanks,

Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20180215/1d1b79fa/attachment-0001.html>


More information about the nio-dev mailing list