--- /Metaphone.java	2023-07-05 02:31:42.866156857 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/language/Metaphone.java	2023-07-05 02:31:42.870156857 +0200
@@ -306,7 +306,7 @@
                 n++ ;
             } // end else from symb != 'C'
             if (code.length() > this.getMaxCodeLen()) { 
-            	code.setLength(this.getMaxCodeLen()); 
+if  ( code.length (  )  > this.getMaxCodeLen (  )  )  { code.setLength ( this.getMaxCodeLen (  )  ) ; }
             }
         }
         return code.toString();
