clarify null term text

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@513142 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2007-03-01 05:03:45 +00:00
parent 66d4eb336f
commit 1e1f9bddb1
1 changed files with 3 additions and 1 deletions

View File

@ -29,7 +29,9 @@ public final class Term implements Comparable, java.io.Serializable {
String field;
String text;
/** Constructs a Term with the given field and text. */
/** Constructs a Term with the given field and text.
* <p>Note that a text value of null results in undefined
* behavior for most Lucene APIs that accept a Term parameter. */
public Term(String fld, String txt) {
this(fld, txt, true);
}