Commons Math
  1. Commons Math
  2. MATH-779

ListPopulation Iterator allows you to remove chromosomes from the population.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.1
    • Labels:

      Description

      Calling the iterator method of ListPopulation returns an iterator of the protected modifiable list. Before returning the iterator we should wrap it in an unmodifiable list.

      1. MATH-779.txt
        2 kB
        Reid Hochstedler

        Activity

        Hide
        Reid Hochstedler added a comment -

        Proposed patch.

        Show
        Reid Hochstedler added a comment - Proposed patch.
        Hide
        Thomas Neidhart added a comment -

        Fixed in r1325427 with minor modifications (updated javadoc, use getChromosomes() instead of Collections.unmodifiableList).

        Show
        Thomas Neidhart added a comment - Fixed in r1325427 with minor modifications (updated javadoc, use getChromosomes() instead of Collections.unmodifiableList).

          People

          • Assignee:
            Unassigned
            Reporter:
            Reid Hochstedler
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 1h
              1h
              Remaining:
              Remaining Estimate - 1h
              1h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development