lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Q about Analyzer.java
Date Wed, 20 Feb 2002 17:18:15 GMT
Hello,

Maybe I'm missing something here, but doesn't this look wrong:

abstract public class Analyzer {
  public TokenStream tokenStream(String fieldName, Reader reader)
  {
          // implemented for backward compatibility
          return tokenStream(reader);
  }
  
  /** Creates a TokenStream which tokenizes all the text in the
provided
   *  Reader.  Provided for backward compatibility only.
   * @deprecated use tokenStream(String, Reader) instead.
   * @see #tokenStream(String, Reader)
   */
  public TokenStream tokenStream(Reader reader)
  {
          return tokenStream(null, reader);
  }

The first method is calling a deprecated method?  Why?

Thanks,
Otis

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

--
To unsubscribe, e-mail:   <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>


Mime
View raw message