Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8354944

Remove unnecessary PartiallyOrderedSet.nodes

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P5 P5
    • tbd
    • None
    • 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.

            aturbanov Andrey Turbanov
            aturbanov Andrey Turbanov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: