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

Currency.getInstance(Locale) API doc is incorrect

XMLWordPrintable

    • b86
    • generic
    • generic

        The API doc of Currency.getInstance(Locale) specifies NullPointerException to be thrown if locale's country is null. However, Locale.getCountry() never returns null.

            NullPointerException - if locale or its country code is null

        should be

            NullPointerException - if locale is null

              rgoel Rachna Goel (Inactive)
              okutsu Masayoshi Okutsu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: