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

VirtualFlow has unnecessary calls to addAllToPile()

    Details

      Description

      VirtualFlow has unnecessary calls to addAllToPile() i.e.

          public final BooleanProperty verticalProperty() {
              if (vertical == null) {
                  vertical = new BooleanPropertyBase(true) {
                      @Override protected void invalidated() {
                          addAllToPile();
                          pile.clear();
                          sheetChildren.clear();

      ...
      ...


      We can replace the addAllToPile with

      cells.clear()
      pile.clear()
      ...
      ...

        Attachments

          Activity

            People

            • Assignee:
              kwwong Kinsley Wong
              Reporter:
              kwwong Kinsley Wong
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved:
                Imported: