You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by Bertrand Delacretaz <bd...@apache.org> on 2007/04/30 08:56:17 UTC

Re: svn commit: r533596 - /lucene/solr/trunk/src/java/org/apache/solr/handler/admin/PropertiesRequestHandler.java

On 4/30/07, ryan@apache.org <ry...@apache.org> wrote:

> ...Modified:
>     lucene/solr/trunk/src/java/org/apache/solr/handler/admin/PropertiesRequestHandler.java
...
> +  public static NamedList<String> toNamedList( Properties p )

IIUC this method is of general use, it might be good to move it to a
utility class, org.apache.solr.util.NamedListUtils maybe?

-Bertrand

Re: svn commit: r533596 - /lucene/solr/trunk/src/java/org/apache/solr/handler/admin/PropertiesRequestHandler.java

Posted by Ryan McKinley <ry...@gmail.com>.
Bertrand Delacretaz wrote:
> On 4/30/07, ryan@apache.org <ry...@apache.org> wrote:
> 
>> ...Modified:
>>     
>> lucene/solr/trunk/src/java/org/apache/solr/handler/admin/PropertiesRequestHandler.java 
>>
> ...
>> +  public static NamedList<String> toNamedList( Properties p )
> 
> IIUC this method is of general use, it might be good to move it to a
> utility class, org.apache.solr.util.NamedListUtils maybe?
> 

Actually, I realized Properties implements Map so it doesn't need any 
special!