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

VirtualFlow has unnecessary calls to addAllToPile()

XMLWordPrintable

      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()
      ...
      ...

            kwwong Kinsley Wong (Inactive)
            kwwong Kinsley Wong (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: