Uploaded image for project: 'Commons Imaging'
  1. Commons Imaging
  2. IMAGING-151

ColorGroup.color_counts is mutable public List and is multiply sorted

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-alpha1
    • 1.0-alpha2
    • None
    • None

    Description

      ColorGroup.color_counts is a public mutable List.
      Also the List is re-sorted in several places

      It looks like the field is only used within the package, so can be package protected.

      However it seems odd that the shared list is re-sorted by

      MedianCutLongestAxisImplementation.doCut
      and
      MedianCutMostPopulatedBoxesImplementation.performNextMedianCut (twice)

      Attachments

        Issue Links

          Activity

            People

              kinow Bruno P. Kinoshita
              sebb Sebb
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m