Uploaded image for project: 'Nutch'
  1. Nutch
  2. NUTCH-2768

FetcherThread: unnecessary usage of class casts

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.16
    • 1.17
    • fetcher
    • None
    • Patch Available

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              snagel Sebastian Nagel
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: