You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Andreas Schöneck (JIRA)" <ji...@apache.org> on 2015/11/01 23:07:27 UTC

[jira] [Commented] (LANG-1179) Add Properties support to StrLookup

    [ https://issues.apache.org/jira/browse/LANG-1179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14984571#comment-14984571 ] 

Andreas Schöneck commented on LANG-1179:
----------------------------------------

How about a unit test over here:
https://git-wip-us.apache.org/repos/asf?p=commons-lang.git;a=blob;f=src/test/java/org/apache/commons/lang3/text/StrLookupTest.java;hb=HEAD

> Add Properties support to StrLookup
> -----------------------------------
>
>                 Key: LANG-1179
>                 URL: https://issues.apache.org/jira/browse/LANG-1179
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.text.*
>    Affects Versions: 3.4
>            Reporter: Anthony Whitford
>            Priority: Minor
>         Attachments: StrLookup.patch
>
>
> Sadly, [Properties|http://docs.oracle.com/javase/7/docs/api/java/util/Properties.html] implements {{Map<Object,Object>}} instead of {{Map<String,String>}}, so one can not use the {{MapStrLookup}}.
> I propose adding a Properties variant.  Patch attached.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)