Potential performance drawback due to type mismatch

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 10
    • Affects Version/s: 8u121, 9
    • Component/s: javafx
    • generic
    • generic

      There is a potential performance drawback due to a type mismatch in TriangleMesh.java:548 as `points.size()` returns `int` so storing as `double` makes not much sense.

      Current Code:
      ```
      final double len = points.size();
      ```

      Proposes Fix:
      ```
      final int len = points.size();
      ```

      (Original Reporter: Dr Michael PAUS via TeamFX)

            Assignee:
            Chien Yang (Inactive)
            Reporter:
            Markus Karg
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: