Lucene - Core
  1. Lucene - Core
  2. LUCENE-4483

Make Term constructor javadoc refer to BytesRef.deepCopyOf

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 4.1
    • Fix Version/s: 4.1, 6.0
    • Component/s: core/index
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      The Term constructor from BytesRef javadoc indicates that a clone needs to be made of the BytesRef.
      But the clone() method of BytesRef is not what is meant, a deep copy needs to be made.

      1. LUCENE-4483.patch
        0.7 kB
        Paul Elschot

        Activity

        Hide
        Robert Muir added a comment -

        Thanks Paul! Good catch!

        Show
        Robert Muir added a comment - Thanks Paul! Good catch!
        Hide
        Paul Elschot added a comment -

        Fixed

        Show
        Paul Elschot added a comment - Fixed
        Hide
        Commit Tag Bot added a comment -

        [branch_4x commit] Robert Muir
        http://svn.apache.org/viewvc?view=revision&revision=1406441

        LUCENE-4483: clarify Term constructor documentation

        Show
        Commit Tag Bot added a comment - [branch_4x commit] Robert Muir http://svn.apache.org/viewvc?view=revision&revision=1406441 LUCENE-4483 : clarify Term constructor documentation

          People

          • Assignee:
            Unassigned
            Reporter:
            Paul Elschot
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development