commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject cvs commit: jakarta-commons/codec/src/java/org/apache/commons/codec/language DoubleMetaphone.java
Date Mon, 24 May 2004 00:25:22 GMT
ggregory    2004/05/23 17:25:22

  Modified:    codec/src/java/org/apache/commons/codec/language
                        DoubleMetaphone.java
  Log:
  Make code less twisty.
  
  Revision  Changes    Path
  1.21      +3 -5      jakarta-commons/codec/src/java/org/apache/commons/codec/language/DoubleMetaphone.java
  
  Index: DoubleMetaphone.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/codec/src/java/org/apache/commons/codec/language/DoubleMetaphone.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- DoubleMetaphone.java	29 Feb 2004 04:08:31 -0000	1.20
  +++ DoubleMetaphone.java	24 May 2004 00:25:22 -0000	1.21
  @@ -198,12 +198,10 @@
        * @throws EncoderException encode parameter is not of type String
        */
       public Object encode(Object obj) throws EncoderException {
  -
           if (!(obj instanceof String)) {
               throw new EncoderException("DoubleMetaphone encode parameter is not of type
String"); 
  -        } else {
  -            return doubleMetaphone((String) obj);
  -        }
  +        } 
  +        return doubleMetaphone((String) obj);
       }
   
       /**
  
  
  

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


Mime
View raw message