From cb9090da4520a9a5240d76c44b4b3912d31b6db5 Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Tue, 2 Jun 2009 13:12:22 +0000 Subject: [PATCH] Fix incorrect example: setValue() is not a method of TokenStream, need more specific type. Thanks Mike git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@781029 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/lucene/search/trie/IntTrieTokenStream.java | 2 +- .../java/org/apache/lucene/search/trie/LongTrieTokenStream.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/queries/src/java/org/apache/lucene/search/trie/IntTrieTokenStream.java b/contrib/queries/src/java/org/apache/lucene/search/trie/IntTrieTokenStream.java index 46c02f4c353..c70109d9a64 100644 --- a/contrib/queries/src/java/org/apache/lucene/search/trie/IntTrieTokenStream.java +++ b/contrib/queries/src/java/org/apache/lucene/search/trie/IntTrieTokenStream.java @@ -46,7 +46,7 @@ import org.apache.lucene.analysis.tokenattributes.PositionIncrementAttribute; * for more than one document: *
  *  // init
- *  TokenStream stream = new IntTrieTokenStream(precisionStep);
+ *  IntTrieTokenStream stream = new IntTrieTokenStream(precisionStep);
  *  Field field = new Field(name, stream);
  *  field.setOmitNorms(true);
  *  field.setOmitTermFreqAndPositions(true);
diff --git a/contrib/queries/src/java/org/apache/lucene/search/trie/LongTrieTokenStream.java b/contrib/queries/src/java/org/apache/lucene/search/trie/LongTrieTokenStream.java
index c4f215a1288..ddb3b02f0d8 100644
--- a/contrib/queries/src/java/org/apache/lucene/search/trie/LongTrieTokenStream.java
+++ b/contrib/queries/src/java/org/apache/lucene/search/trie/LongTrieTokenStream.java
@@ -46,7 +46,7 @@ import org.apache.lucene.analysis.tokenattributes.PositionIncrementAttribute;
  * for more than one document:
  * 
  *  // init
- *  TokenStream stream = new LongTrieTokenStream(precisionStep);
+ *  LongTrieTokenStream stream = new LongTrieTokenStream(precisionStep);
  *  Field field = new Field(name, stream);
  *  field.setOmitNorms(true);
  *  field.setOmitTermFreqAndPositions(true);