--- /RefinedSoundex.java	2023-07-05 03:07:03.962036532 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/language/RefinedSoundex.java	2023-07-05 03:07:03.962036532 +0200
@@ -112,7 +112,7 @@
 	 */
     public Object encode(Object pObject) throws EncoderException {
         if (!(pObject instanceof java.lang.String)) {
-            throw new EncoderException("Parameter supplied to RefinedSoundex encode is not of type java.lang.String");
+if  ( ! ( pObject instanceof String )  )  {     throw new EncoderException ( "Parameter supplied to RefinedSoundex encode is not of type String" ) ; }
         }
         return soundex((String) pObject);
     }
