Developers,

Do you want "Urls" or "URLs"?

Jody writes: "Please follow java naming conventions Urls renames to URLs"

And I responded: "@jodygarnett we might need to put Urls vs URLs to a vote on the mailing list. Looking through the dependencies we have (visible from GeoServer gs-web-app Start) we have a huge mix of URL versus Url prefixes. There is at least one other Urls class out there. I think we ask the developers what they want. There is a modern style that three-letter acronyms get lowercase tail letters when forming CamelCase/PascalCase. Does this rule apply when adding an "s" in the style of "Lists", "Collections", and "Streams"? I thought yes, but happy to change it to match majority preference."

Wiremock has an Urls class for its static URL helper methods.

You say tomayto, I say tomahto, ...

Kind regards,
Ben.

On 30/05/17 14:23, Ben Caradoc-Davies wrote:
I want to move the DataUtilities URL methods to new Urls class in
gt-metadata. Current methods will be retained and @deprecated:

Jira:

[GEOT-5740] Move DataUtilities URL methods to new Urls class in gt-metadata
https://osgeo-org.atlassian.net/browse/GEOT-5740

Pull request for master:

[GEOT-5740] Move DataUtilities URL methods to new Urls class in
gt-metadata (master)
https://github.com/geotools/geotools/pull/1604

The main change is that methods like DataUtilities.fileToURL and
DataUtilities.urlToFile become shorter: Urls.fileToUrl and
Urls.urlToFile respectively. There is a small amount of code preening. I
also updated the docs and examples to use the new API.

Kind regards,


--
Ben Caradoc-Davies <b...@transient.nz>
Director
Transient Software Limited <http://transient.nz/>
New Zealand

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to