Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

fix javadoc that says Token is deprecated

Mark Robert Millercbfee9d81486
diff --git a/src/java/org/apache/lucene/analysis/TokenStream.java b/src/java/org/apache/lucene/analysis/TokenStream.java
index c2d724e67a1..e3fed5322fa 100644
--- a/src/java/org/apache/lucene/analysis/TokenStream.java
+++ b/src/java/org/apache/lucene/analysis/TokenStream.java
@@ -40,8 +40,8 @@ import org.apache.lucene.util.AttributeSource;
<li>{@link TokenFilter}, a TokenStream
whose input is another TokenStream.
</ul>
- A new TokenStream API is introduced with Lucene 2.9. Since
- 2.9 Token is deprecated and the preferred way to store
+ A new TokenStream API is introduced with Lucene 2.9. While Token still
+ exists in 2.9 as a convenience class, the preferred way to store
the information of a token is to use {@link AttributeImpl}s.
<p>
For that reason TokenStream extends {@link AttributeSource}