Uploaded image for project: 'Click'
  1. Click
  2. CLK-743

Deprecate TreeNode constructor which accepts parent node

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3.0-M1
    • 2.3.0-RC1
    • extras
    • None

    Description

      TreeNode has constructors that accepts a parent node to which the new node is added to. This leads to the following code:

      new TrreNode("node1", parent);

      a little confusing because the newly created node isn't assigned and looks unused.

      By using one of the alternative consturctors we get this:

      TreeNode child = new TrreNode("node1");
      parent.add(child);

      Now the code is clear as to what is happening.

      Attachments

        Activity

          People

            sabob Bob Schellink
            sabob Bob Schellink
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: