lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Lombard (JIRA)" <j...@apache.org>
Subject [Lucene.Net] [jira] [Created] (LUCENENET-434) Remove AnonymousXXXX classes to increase readablity
Date Sat, 09 Jul 2011 06:00:19 GMT
Remove AnonymousXXXX classes to increase readablity
---------------------------------------------------

                 Key: LUCENENET-434
                 URL: https://issues.apache.org/jira/browse/LUCENENET-434
             Project: Lucene.Net
          Issue Type: Improvement
          Components: Lucene.Net Core
    Affects Versions: Lucene.Net 2.9.4g
            Reporter: Scott Lombard
            Assignee: Scott Lombard
             Fix For: Lucene.Net 2.9.4g


Replace AnonymousXXXX classes inhereted from JLCA which make the code impossible to read.
Follow Digy's template to replace the single abstract method with Func<> or Action<>
 
like in FilterCache<T> from:
protected abstract object MergeDeletes(IndexReader reader, object value);
to:
Func<IndexReader, object, object> MergeDeletes;
 
Determine a solution to the classes with more than 1 abstract method without diverging much
from Java.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message