RFR 8194746: (fs) Add equivalents of Paths.get to Path interface

Remi Forax forax at univ-mlv.fr
Tue Mar 13 14:04:29 UTC 2018



----- Mail original -----
> De: "Alan Bateman" <Alan.Bateman at oracle.com>
> À: "Brian Burkhalter" <brian.burkhalter at oracle.com>
> Cc: "nio-dev" <nio-dev at openjdk.java.net>
> Envoyé: Mardi 13 Mars 2018 14:53:39
> Objet: Re: RFR 8194746: (fs) Add equivalents of Paths.get to Path interface

> On 08/03/2018 22:52, Brian Burkhalter wrote:
>> Updated patch with the improvements suggested below:
>>
>> http://cr.openjdk.java.net/~bpb/8194746/webrev.01/
>> <http://cr.openjdk.java.net/%7Ebpb/8194746/webrev.01/>
>>
> What would you think of trimming the javadoc of the Paths.get methods so
> that it is more obvious that they just delegate to Path.get?

yes !

> 
> Separately, Brian Goetz suggested off-list that it would be more
> consistent if these factory methods were named "of" so I assume the
> webrev will be updated to see how that looks.

any name will be better than "get", and yes the recent vogue is to use "of",
you can also use "path" if you suppose people will use an import static, "of" doesn't well with an import static.

> 
> -Alan

Rémi


More information about the nio-dev mailing list