You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Chris A. Mattmann (JIRA)" <ji...@apache.org> on 2015/10/30 22:52:27 UTC

[jira] [Work started] (NUTCH-2146) hashCode on the Outlink class

     [ https://issues.apache.org/jira/browse/NUTCH-2146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on NUTCH-2146 started by Chris A. Mattmann.
------------------------------------------------
> hashCode on the Outlink class
> -----------------------------
>
>                 Key: NUTCH-2146
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2146
>             Project: Nutch
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 1.10, 1.11
>            Reporter: Jorge Luis Betancourt Gonzalez
>            Assignee: Chris A. Mattmann
>            Priority: Minor
>             Fix For: 1.11
>
>
> The {{Outlink}} class doesn't have a {{hashCode}} method. This doesn't cause any trouble with the already implemented plugins but if a developer tries to use a {{HashSet}} of outlinks in a custom plugin the {{Outlink}} instances with same data (toUrl, anchor) gets added several times. In contrast the {{Inlink}} class does have a {{hashCode}} method:
> https://github.com/apache/nutch/blob/trunk/src/java/org/apache/nutch/crawl/Inlink.java#L75-L77. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)