commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tobr...@apache.org
Subject cvs commit: jakarta-commons/codec/src/java/org/apache/commons/codec/language Metaphone.java
Date Thu, 04 Sep 2003 21:20:02 GMT
tobrien     2003/09/04 14:20:02

  Modified:    codec/src/java/org/apache/commons/codec/language
                        Metaphone.java
  Log:
  Fixed bug reported by Dan Quaroni <dquaroni@openratings.com> dealing
  with the maxCodeLen check at the tail end of the Metaphone alg.
  
  Revision  Changes    Path
  1.5       +2 -2      jakarta-commons/codec/src/java/org/apache/commons/codec/language/Metaphone.java
  
  Index: Metaphone.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/codec/src/java/org/apache/commons/codec/language/Metaphone.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Metaphone.java	30 Jul 2003 22:34:18 -0000	1.4
  +++ Metaphone.java	4 Sep 2003 21:20:02 -0000	1.5
  @@ -363,7 +363,7 @@
                   } // end switch
                   n++ ;
               } // end else from symb != 'C'
  -            if (mtsz > 4) { code.setLength(4); }
  +            if (mtsz > maxCodeLen) { code.setLength(maxCodeLen); }
           }
           return code.toString();
       } 
  
  
  

Mime
View raw message