File tree Expand file tree Collapse file tree
src/main/java/org/apache/commons/codec/language/bm Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ private PhonemeBuilder(final Set<Rule.Phoneme> phonemes) {
8787 */
8888 public void append (final CharSequence str ) {
8989 for (final Rule .Phoneme ph : this .phonemes ) {
90- ph .append (str );
90+ ph .append (str );
9191 }
9292 }
9393
@@ -204,15 +204,15 @@ public RulesApplication invoke() {
204204 int patternLength = 1 ;
205205 final List <Rule > rules = this .finalRules .get (input .subSequence (i , i +patternLength ));
206206 if (rules != null ) {
207- for (final Rule rule : rules ) {
208- final String pattern = rule .getPattern ();
209- patternLength = pattern .length ();
210- if (rule .patternAndContextMatches (this .input , this .i )) {
211- this .phonemeBuilder = this .phonemeBuilder .apply (rule .getPhoneme (), maxPhonemes );
212- this .found = true ;
213- break ;
214- }
215- }
207+ for (final Rule rule : rules ) {
208+ final String pattern = rule .getPattern ();
209+ patternLength = pattern .length ();
210+ if (rule .patternAndContextMatches (this .input , this .i )) {
211+ this .phonemeBuilder = this .phonemeBuilder .apply (rule .getPhoneme (), maxPhonemes );
212+ this .found = true ;
213+ break ;
214+ }
215+ }
216216 }
217217
218218 if (!this .found ) {
You can’t perform that action at this time.
0 commit comments