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

Sebastian Nagel resolved NUTCH-2817.
------------------------------------
    Resolution: Fixed

> Avoid check for equality of URL path and file part using ==/!=
> --------------------------------------------------------------
>
>                 Key: NUTCH-2817
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2817
>             Project: Nutch
>          Issue Type: Sub-task
>          Components: plugin, protocol
>    Affects Versions: 1.17
>            Reporter: Sebastian Nagel
>            Priority: Minor
>             Fix For: 1.18
>
>
> In the plugins protocol-file and protocol-ftp Spotbugs warns about 
> "Comparison of String objects using == or !=". This is actual a false 
> positive since path and file point to the same object for URLs with no query 
> part (a query is not supported for file:// and ftp://). To check for 
> existence of the query part would be better to understand and also avoids the 
> Spotbugs warning.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to