ggregory    2004/05/23 17:23:17

  Modified:    codec/src/java/org/apache/commons/codec/language
                        RefinedSoundex.java
  Log:
  Make code less twisty.
  
  Revision  Changes    Path
  1.19      +2 -5      
jakarta-commons/codec/src/java/org/apache/commons/codec/language/RefinedSoundex.java
  
  Index: RefinedSoundex.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/codec/src/java/org/apache/commons/codec/language/RefinedSoundex.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- RefinedSoundex.java       18 Apr 2004 21:31:46 -0000      1.18
  +++ RefinedSoundex.java       24 May 2004 00:23:17 -0000      1.19
  @@ -110,13 +110,10 @@
         *                  if the parameter supplied is not of type java.lang.String
         */
       public Object encode(Object pObject) throws EncoderException {
  -        Object result;
           if (!(pObject instanceof java.lang.String)) {
               throw new EncoderException("Parameter supplied to RefinedSoundex encode 
is not of type java.lang.String");
  -        } else {
  -            result = soundex((String) pObject);
           }
  -        return result;
  +        return soundex((String) pObject);
       }
   
       /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to