Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-7706

Update MergeScheduler's documentation - clone() is no longer there

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      I didn't look too closely, but MergeScheduler has this piece of documentation:

       *  <p>Implementers of sub-classes should make sure that {@link #clone()}
       *  returns an independent instance able to work with any {@link IndexWriter}
       *  instance.</p>
      

      Now, we don't seem to be using this at all... I think. MergeScheduler doesn't even implement Cloneable. But in any case, I think it'd be better to provide an abstract covariant of this sort:

      public abstract MergeScheduler clone() {
        return this;
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dweiss Dawid Weiss
                Reporter:
                dweiss Dawid Weiss
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: