[
https://issues.apache.org/jira/browse/NUTCH-2768?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17041943#comment-17041943
]
ASF GitHub Bot commented on NUTCH-2768:
---------------------------------------
sebastian-nagel commented on pull request #499: NUTCH-2768 FetcherThread:
unnecessary usage of class casts
URL: https://github.com/apache/nutch/pull/499
----------------------------------------------------------------
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]
> FetcherThread: unnecessary usage of class casts
> -----------------------------------------------
>
> Key: NUTCH-2768
> URL: https://issues.apache.org/jira/browse/NUTCH-2768
> Project: Nutch
> Issue Type: Improvement
> Components: fetcher
> Affects Versions: 1.16
> Reporter: Sebastian Nagel
> Priority: Trivial
> Fix For: 1.17
>
>
> The member variables fetchQueues (instance of FetchItemQueues) and
> spinWaiting (instance of AtomicInteger) are declared as "Object" which then
> requires to cast them. The variables are assigned in the constructor, they
> should be declared with the correct type to avoid unnecessary casts.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)