You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2012/11/07 04:54:52 UTC
svn commit: r1406441 - in /lucene/dev/branches/branch_4x: ./ lucene/
lucene/CHANGES.txt lucene/core/
lucene/core/src/java/org/apache/lucene/index/Term.java
Author: rmuir
Date: Wed Nov 7 03:54:51 2012
New Revision: 1406441
URL: http://svn.apache.org/viewvc?rev=1406441&view=rev
Log:
LUCENE-4483: clarify Term constructor documentation
Modified:
lucene/dev/branches/branch_4x/ (props changed)
lucene/dev/branches/branch_4x/lucene/ (props changed)
lucene/dev/branches/branch_4x/lucene/CHANGES.txt (contents, props changed)
lucene/dev/branches/branch_4x/lucene/core/ (props changed)
lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/index/Term.java
Modified: lucene/dev/branches/branch_4x/lucene/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/CHANGES.txt?rev=1406441&r1=1406440&r2=1406441&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/CHANGES.txt (original)
+++ lucene/dev/branches/branch_4x/lucene/CHANGES.txt Wed Nov 7 03:54:51 2012
@@ -159,6 +159,11 @@ Optimizations
Users of this API can now simply obtain an instance via DocValues#getDirectSource per thread.
(Simon Willnauer)
+Documentation
+
+* LUCENE-4483: Refer to BytesRef.deepCopyOf in Term's constructor that takes BytesRef.
+ (Paul Elschot via Robert Muir)
+
Build
* Upgrade randomized testing to version 2.0.4: avoid hangs on shutdown
Modified: lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/index/Term.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/index/Term.java?rev=1406441&r1=1406440&r2=1406441&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/index/Term.java (original)
+++ lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/index/Term.java Wed Nov 7 03:54:51 2012
@@ -37,8 +37,8 @@ public final class Term implements Compa
*
* <p>WARNING: the provided BytesRef is not copied, but used directly.
* Therefore the bytes should not be modified after construction, for
- * example, you should clone a copy rather than pass reused bytes from
- * a TermsEnum.
+ * example, you should clone a copy by {@link BytesRef#deepCopyOf}
+ * rather than pass reused bytes from a TermsEnum.
*/
public Term(String fld, BytesRef bytes) {
field = fld;