lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: DocumentWriter, StopFilter should use HashMap... (patch)
Date Wed, 10 Mar 2004 00:27:03 GMT
Kevin - I've made this change and committed it, using a Set.

Let me know if there are any issues with what I've committed - I 
believe I've faithfully preserved backwards compatibility.

	Erik

p.s. ...

On Mar 9, 2004, at 2:00 PM, Kevin A. Burton wrote:
>   public StopFilter(TokenStream in, Hashtable stopTable) {
>     super(in);
>     map = new HashMap();
>
>     Enumeration keys = stopTable.keys();
>     while ( keys.hasMoreElements() ) {
>         Object key = keys.nextElement();
>         map.put( key, stopTable.get( key ) );
>     }

By the way, the ctor to HashMap can take a Map, which Hashtable is also 
:))


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message