lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From o...@apache.org
Subject cvs commit: jakarta-lucene/src/java/org/apache/lucene/analysis PorterStemFilter.java
Date Mon, 10 Nov 2003 14:37:08 GMT
otis        2003/11/10 06:37:08

  Modified:    src/java/org/apache/lucene/analysis PorterStemFilter.java
  Log:
  - Fixed indentation.
  
  Revision  Changes    Path
  1.4       +16 -17    jakarta-lucene/src/java/org/apache/lucene/analysis/PorterStemFilter.java
  
  Index: PorterStemFilter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/analysis/PorterStemFilter.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- PorterStemFilter.java	9 Dec 2002 19:02:20 -0000	1.3
  +++ PorterStemFilter.java	10 Nov 2003 14:37:08 -0000	1.4
  @@ -74,25 +74,24 @@
       }
       </PRE>
   */
  -
   public final class PorterStemFilter extends TokenFilter {
  -    private PorterStemmer stemmer;
  +  private PorterStemmer stemmer;
   
  -    public PorterStemFilter(TokenStream in) {
  -      super(in);
  -      stemmer = new PorterStemmer();
  -    }
  +  public PorterStemFilter(TokenStream in) {
  +    super(in);
  +    stemmer = new PorterStemmer();
  +  }
   
  -    /** Returns the next input Token, after being stemmed */
  -    public final Token next() throws IOException {
  -	Token token = input.next();
  -	if (token == null)
  -	    return null;
  -	else {
  -	    String s = stemmer.stem(token.termText);
  -	    if (s != token.termText) // Yes, I mean object reference comparison here
  -		token.termText = s;
  -	    return token;
  -	}
  +  /** Returns the next input Token, after being stemmed */
  +  public final Token next() throws IOException {
  +    Token token = input.next();
  +    if (token == null)
  +      return null;
  +    else {
  +      String s = stemmer.stem(token.termText);
  +      if (s != token.termText) // Yes, I mean object reference comparison here
  +  	    token.termText = s;
  +      return token;
       }
  +  }
   }
  
  
  

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


Mime
View raw message