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

Make Term constructor javadoc refer to BytesRef.deepCopyOf

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 4.1
    • 4.1, 6.0
    • core/index
    • None
    • 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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            paul.elschot@xs4all.nl Paul Elschot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment