Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-887

Code in FastDateParser broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.2
    • None
    • None

    Description

      Findbugs noticed that:

      "Integer is incompatible with expected argument type java.util.Locale in org.apache.commons.lang3.time.FastDateParser.getLocaleSpecificStrategy(int, Calendar)"

      Line 500:

      500 Strategy strategy= cache.get(Integer.valueOf(field));

      The type of the map is <Locale,Strategy>, Integer makes no sense.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bayard Henri Yandell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: