Uploaded image for project: 'Lucene.Net'
  1. Lucene.Net
  2. LUCENENET-434

Remove AnonymousXXXX classes to increase readablity

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Incomplete
    • Lucene.Net 2.9.4g, Lucene.Net 3.0.3
    • Lucene.Net 3.6
    • Lucene.Net Core
    • None

    Description

      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.

      Attachments

        1. TeeSinkTokenFilter.patch
          5 kB
          Scott R. Lombard

        Activity

          People

            slombard Scott R. Lombard
            slombard Scott R. Lombard
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 168h
                168h
                Remaining:
                Time Spent - 13h Remaining Estimate - 155h
                155h
                Logged:
                Time Spent - 13h Remaining Estimate - 155h
                13h