lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dna...@apache.org
Subject svn commit: r347992 - in /lucene/java/trunk/src/java/org/apache/lucene/analysis: ISOLatin1AccentFilter.java KeywordTokenizer.java LengthFilter.java
Date Mon, 21 Nov 2005 21:41:53 GMT
Author: dnaber
Date: Mon Nov 21 13:41:43 2005
New Revision: 347992

URL: http://svn.apache.org/viewcvs?rev=347992&view=rev
Log:
tiny whitespace and javadoc fixes

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/analysis/ISOLatin1AccentFilter.java
    lucene/java/trunk/src/java/org/apache/lucene/analysis/KeywordTokenizer.java
    lucene/java/trunk/src/java/org/apache/lucene/analysis/LengthFilter.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/analysis/ISOLatin1AccentFilter.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/src/java/org/apache/lucene/analysis/ISOLatin1AccentFilter.java?rev=347992&r1=347991&r2=347992&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/analysis/ISOLatin1AccentFilter.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/analysis/ISOLatin1AccentFilter.java Mon Nov
21 13:41:43 2005
@@ -17,8 +17,8 @@
  */
 
 /**
- * A filter that replaces accented characters in the ISO Latin 1 character set by
- * their unaccented equivalent. The case will not be altered.
+ * A filter that replaces accented characters in the ISO Latin 1 character set 
+ * (ISO-8859-1) by their unaccented equivalent. The case will not be altered.
  * <p>
  * For instance, '&agrave;' will be replaced by 'a'.
  * <p>

Modified: lucene/java/trunk/src/java/org/apache/lucene/analysis/KeywordTokenizer.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/src/java/org/apache/lucene/analysis/KeywordTokenizer.java?rev=347992&r1=347991&r2=347992&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/analysis/KeywordTokenizer.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/analysis/KeywordTokenizer.java Mon Nov 21
13:41:43 2005
@@ -23,7 +23,8 @@
  * Emits the entire input as a single token.
  */
 public class KeywordTokenizer extends Tokenizer {
-  private static final int DEFAULT_BUFFER_SIZE=256;
+  
+  private static final int DEFAULT_BUFFER_SIZE = 256;
 
   private boolean done;
   private final char[] buffer;
@@ -34,8 +35,8 @@
 
   public KeywordTokenizer(Reader input, int bufferSize) {
     super(input);
-    this.buffer=new char[bufferSize];
-    this.done=false;
+    this.buffer = new char[bufferSize];
+    this.done = false;
   }
 
   public Token next() throws IOException {

Modified: lucene/java/trunk/src/java/org/apache/lucene/analysis/LengthFilter.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/src/java/org/apache/lucene/analysis/LengthFilter.java?rev=347992&r1=347991&r2=347992&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/analysis/LengthFilter.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/analysis/LengthFilter.java Mon Nov 21 13:41:43
2005
@@ -37,7 +37,7 @@
   {
     super(in);
     this.min = min;
-    this.max =max;
+    this.max = max;
   }
 
   /**
@@ -49,7 +49,7 @@
     for (Token token = input.next(); token != null; token = input.next())
     {
       int len = token.termText().length();
-      if ( len >= min && len <= max) {
+      if (len >= min && len <= max) {
           return token;
       }
       // note: else we ignore it but should we index each part of it?



Mime
View raw message