mirror of https://github.com/apache/lucene.git
clarify Term javadoc: field shouldn't be null either
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@513547 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7b570fc8b2
commit
1c3ec1d1d2
|
@ -30,7 +30,7 @@ public final class Term implements Comparable, java.io.Serializable {
|
|||
String text;
|
||||
|
||||
/** Constructs a Term with the given field and text.
|
||||
* <p>Note that a text value of null results in undefined
|
||||
* <p>Note that a null field or null text value results in undefined
|
||||
* behavior for most Lucene APIs that accept a Term parameter. */
|
||||
public Term(String fld, String txt) {
|
||||
this(fld, txt, true);
|
||||
|
|
Loading…
Reference in New Issue