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

ObjectNode.elements should be stronger typed

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: