Apache Lucene open-source search software
clarify Term javadoc: field shouldn't be null either
Yonik Seeley1c3ec1d1d2b2
diff --git a/src/java/org/apache/lucene/index/Term.java b/src/java/org/apache/lucene/index/Term.javaindex 278c9197797..857637f2d02 100644--- a/src/java/org/apache/lucene/index/Term.java+++ b/src/java/org/apache/lucene/index/Term.java@@ -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);