commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Etienne Neveu (JIRA)" <>
Subject [jira] [Commented] (LANG-564) Improve StrLookup API documentation
Date Tue, 23 Aug 2011 08:42:29 GMT


Etienne Neveu commented on LANG-564:

Ok. I wasn't sure whether I should create a new issue, but it makes sense since this one was
closed 18 months ago. Thanks!

> Improve StrLookup API documentation
> -----------------------------------
>                 Key: LANG-564
>                 URL:
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.text.*
>            Reporter: Sebb
>             Fix For: 3.0
> 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
> 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.

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message