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

Potential performance drawback due to type mismatch

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 8u121, 9
    • 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)

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

              Created:
              Updated:
              Resolved: