Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-3067

Provide a Spoon check to not rely on Locale(String) constructor

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 15.10.10
    • None
    • Unknown

    Description

      We should never rely on the Locale(String) constructor since we always want to be able to deal with country code and this constructor is only for language code. So we should have a way to detect those calls and discard them.
      Instead we should use LocaleUtils#toLocale.
      See also XWIKI-20651

      Attachments

        Activity

          People

            Unassigned Unassigned
            surli Simon Urli
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: