Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-13651

SpinJsonNode elements method is not documented clear enough

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • L3 - Default
    • None
    • None
    • spin
    • None

    Description

      Acceptance Criteria (Required on creation):

      The JavaDocs for SpinJsonNode.elements() are not clear enough. See https://javadoc.io/doc/org.camunda.spin/camunda-spin-core/1.9.1/org/camunda/spin/json/SpinJsonNode.html#elements--

      public abstract SpinList<SpinJsonNode> elements()
      Get this node as list.
      Returns:
          the list value of this node
      

      It is not clear, that elements() returns a list of copies of the SpinJsonNode objects and that modifying the list will not update the original SpinJsonNode. See https://github.com/camunda/camunda-spin/blob/cf898059dd159fa82e58379188ec5bb2c2cbf73c/dataformat-json-jackson/src/main/java/org/camunda/spin/impl/json/jackson/JacksonJsonNode.java#L425

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

              miklas.boskamp Miklas Boskamp
              miklas.boskamp Miklas Boskamp
              Yana Vasileva Yana Vasileva
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Salesforce