Sebastian Nagel created NUTCH-2768:
--------------------------------------

             Summary: 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
             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)

Reply via email to