AgenteFarron / crawler-commons

Automatically exported from code.google.com/p/crawler-commons
0 stars 0 forks source link

[Sitemaps] SiteMap should contain a list of SitemapUrls instead of a table of them #57

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
A SiteMap object should contain a collection of SiteMapUrls.

Currently it contains a TABLE where the key is the url and the value is the 
SiteMapUrl object.

The key is always siteMapUrl.getUrl().

This is just confusing and not needed.
I have checked and nobody uses this table's key anywhere... - even the getter 
returns only the TABLE.values().

We should change the table to a set or a list (much less confusing) and 
implement equals & hashcode in SiteMapUrl

Original issue reported on code.google.com by avrah...@gmail.com on 26 Oct 2014 at 12:33

GoogleCodeExporter commented 8 years ago
The same fix should be implied to SiteMapIndex

Original comment by avrah...@gmail.com on 26 Oct 2014 at 12:44

GoogleCodeExporter commented 8 years ago
Done.

Including a patch

Original comment by avrah...@gmail.com on 25 Dec 2014 at 11:46

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by avrah...@gmail.com on 25 Dec 2014 at 11:50

GoogleCodeExporter commented 8 years ago
Avi I am + 1 for this patch. It cleans up the codebase by removing unnecessary 
method calls wrapped in method calls. Please commit.

Original comment by lewis.mc...@gmail.com on 7 Jan 2015 at 8:44

GoogleCodeExporter commented 8 years ago
Committed at r156

Original comment by avrah...@gmail.com on 12 Jan 2015 at 10:54

GoogleCodeExporter commented 8 years ago

Original comment by avrah...@gmail.com on 13 Jan 2015 at 11:20