Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-459

ArrayIterator & ObjectArrayIterator - do they need setters?`

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0-alpha1, 4.0
    • None
    • None

    Description

      ArrayIterator & ObjectArrayIterator both have methods to set the array separately from the ctor.

      However the method does not allow the same flexibility as the ctor, as it does not allow the start or end indexes to be set.

      Is there really a use-case for these setters? If not, all the fields apart from index could be made final, which would make thread safety (and testing) easier.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: