[ 
https://issues.apache.org/jira/browse/NUTCH-2817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17175311#comment-17175311
 ] 

ASF GitHub Bot commented on NUTCH-2817:
---------------------------------------

sebastian-nagel merged pull request #548:
URL: https://github.com/apache/nutch/pull/548


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


> 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