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

DateTimeTextProvider.getInstance() returns a new instance every time

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 10
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b11

      Description

      `DateTimeTextProvider.getInstance()` returns a new instance every time it is called. This seems to be unnecessary, and returning a singleton may have a small performance benefit to formatting/parsing.

        Attachments

          Activity

            People

            Assignee:
            naoto Naoto Sato
            Reporter:
            scolebourne Stephen Colebourne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: