Remove unnecessary PartiallyOrderedSet.nodes

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P5
    • 25
    • Affects Version/s: None
    • Component/s: client-libs

      There is a Set field 'javax.imageio.spi.PartiallyOrderedSet#nodes' which is initialized as keySet of Map field `poNodes`

          // Maps Objects to DigraphNodes that contain them
          private Map<E, DigraphNode<E>> poNodes = new HashMap<>();

          // The set of Objects
          private Set<E> nodes = poNodes.keySet();

      The field 'nodes' is redundant: we can always use methods of 'poNodes' directly, without additional delegation.

            Assignee:
            Andrey Turbanov
            Reporter:
            Andrey Turbanov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: