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

Improve StrLookup API documentation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0
    • lang.text.*
    • None

    Description

      The API for StrLookup is confused. The class has been partly genericised, but why?

      The Javadoc says the class is for looking up Strings which are indexed by Strings, and this agrees with the method lookup()

      Surely if the class is generic on <V>, the lookup() method should return V, not String?

      Does it make any sense for the class to return anything but a String? If not, then why is the class generic?
      If it does make sense, then lookup() should return V.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: