On 5/6/06, karl wettin <[EMAIL PROTECTED]> wrote:
There are a couple of Vector:s in the code. Is it really necessary to use this expensive thread safe artifact from the dark ages?
I've wondered that myself ... seeing "Vector" in the code does hurt my eyes a little :-) It's just one of those things that's never the highest priority I guess. I think in many/most of these places it's unnecessary to have a synchronized collection at all. For examile, the one in Document for instance will be used often: List fields = new Vector(); Since the reference type is actually "List" it looks like the use of a synchronized collection is deliberate. Can someone think why this is needed? -Yonik http://incubator.apache.org/solr Solr, the open-source Lucene search server --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]