ObjectNode.elements should be stronger typed

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 8
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: