Re: [Lucene.Net] [jira] [Commented] (LUCENENET-412) Replacing ArrayLists, Hashtables etc. with appropriate Generics.

2011-05-17 Thread digy digy
just aesthetical reasons. See the java code cache = new FilterCache(deletesMode) { @Override public DocIdSet mergeDeletes(final IndexReader r, final DocIdSet docIdSet) { return new FilteredDocIdSet(docIdSet) { @Override protected boolean match(int docI

Re: [Lucene.Net] [jira] [Commented] (LUCENENET-412) Replacing ArrayLists, Hashtables etc. with appropriate Generics.

2011-05-17 Thread Rory Plaire
This is a great improvement, but why not also remove the braces and returns? var cache = new FilterCache(deletesMode, (reader, docIdSet) => new FilteredDocIdSet( (DocIdSet)docIdSet, docid => !reader.IsDeleted(docid))); On Tue, May 17, 2011 at 3:01 PM, Digy (JIRA) wrote: > >[ > https:

[Lucene.Net] [jira] [Commented] (LUCENENET-412) Replacing ArrayLists, Hashtables etc. with appropriate Generics.

2011-05-17 Thread Digy (JIRA)
[ https://issues.apache.org/jira/browse/LUCENENET-412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13035092#comment-13035092 ] Digy commented on LUCENENET-412: One more sample {code} From: class AnonymousFi