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

ArrayIterator & ObjectArrayIterator - do they need setters?`

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0-alpha1, 4.0
    • Component/s: None
    • Labels:
      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

            • Assignee:
              Unassigned
              Reporter:
              sebb@apache.org Sebb
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: