Skip to content

Apache Lucene open-source search software

LUCENE-2308: fix javadocs

Michael McCandless9009a83421b7
diff --git a/lucene/src/java/org/apache/lucene/document/StringField.java b/lucene/src/java/org/apache/lucene/document/StringField.java
index 000160f37b4..41a3f1d8b32 100644
--- a/lucene/src/java/org/apache/lucene/document/StringField.java
+++ b/lucene/src/java/org/apache/lucene/document/StringField.java
@@ -26,7 +26,7 @@ import org.apache.lucene.index.FieldInfo.IndexOptions;
* or access through the field cache.
*
* <p/>This field's value is not stored by default; use the
- * {@link TYPE_STORED} type (pass it to <code>new
+ * {@link StringField#TYPE_STORED} type (pass it to <code>new
* Field</code>) to store the value. */
public final class StringField extends Field {
diff --git a/lucene/src/java/org/apache/lucene/document/TextField.java b/lucene/src/java/org/apache/lucene/document/TextField.java
index 2f928b20db3..19131da7045 100644
--- a/lucene/src/java/org/apache/lucene/document/TextField.java
+++ b/lucene/src/java/org/apache/lucene/document/TextField.java
@@ -26,7 +26,7 @@ import org.apache.lucene.analysis.TokenStream;
* field, that contains the bulk of a document's text.
*
* This field's value is not stored by default; use the
- * {@link TYPE_STORED} type (pass it to <code>new
+ * {@link TextField#TYPE_STORED} type (pass it to <code>new
* Field</code>) to store the value. */
public final class TextField extends Field {