--- /Metaphone.java	2023-07-05 03:06:43.630037174 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/language/Metaphone.java	2023-07-05 03:06:43.634037174 +0200
@@ -133,8 +133,8 @@
         int wdsz = local.length();
         int n = 0 ;
 
-        while ((code.length() < this.getMaxCodeLen()) && 
-        	   (n < wdsz) ) { // max code size of 4 works well
+while  (  ( code.length (  )  < this .setMaxCodeLen ( n )   )  && ( n < wdsz )   )  {
+ 
             char symb = local.charAt(n) ;
             // remove duplicate letters except C
             if ((symb != 'C') && (isPreviousChar( local, n, symb )) ) {
