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

ObjectNode.elements should be stronger typed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • None
    • core-libs
    • None

      ObjectNode.elements field is typed as List<Node>, when it could be List<PropertyNode>. There are casts throughout the code of elements to PropertyNode. The code is also better self-documenting if we express with types that ObjectNode's children are always PropertyNode objects.

            attila Attila Szegedi
            attila Attila Szegedi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: