On Sun, Dec 14, 2008, Uwe Schindler wrote about "RE: 2.9/3.0 plan & Java 1.5": > A side note: there are some parts in Lucene's API that are not so good: very > old constructors of Analyzer use e.g. Hashtable/HashMap/ArrayList/Vector/... > as parameter etc. For clean code, it should be replaced by Map/Set/List > interfaces. But this would not be backwards compatible.
Or even Iterable, which is new to Java 1.5 and usually makes more sense in a read-only context. Iterable could have also been used instead of List as a return value in method like Document.getFields() and so on, but again, this would not be backward compatible (although, for 3.0 we may decide that this is not absolutely necessary). -- Nadav Har'El | Sunday, Dec 14 2008, 18 Kislev 5769 IBM Haifa Research Lab |----------------------------------------- |Hospital: Where they wake you up to give http://nadav.harel.org.il |you a sleeping pill. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org