This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-codec.git


The following commit(s) were added to refs/heads/master by this push:
     new 599bedc4 Fix formating
599bedc4 is described below

commit 599bedc4e8cc7e997b947c488e322951a3e53a4e
Author: Gary Gregory <[email protected]>
AuthorDate: Mon Aug 21 17:12:23 2023 -0400

    Fix formating
---
 src/main/java/org/apache/commons/codec/language/Metaphone.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/commons/codec/language/Metaphone.java 
b/src/main/java/org/apache/commons/codec/language/Metaphone.java
index 5d89f0f3..ff23ac59 100644
--- a/src/main/java/org/apache/commons/codec/language/Metaphone.java
+++ b/src/main/java/org/apache/commons/codec/language/Metaphone.java
@@ -312,7 +312,7 @@ public class Metaphone implements StringEncoder {
 
     private boolean isPreviousChar(final StringBuilder string, final int 
index, final char c) {
         boolean matches = false;
-        if( index > 0 &&
+        if (index > 0 &&
             index < string.length() ) {
             matches = string.charAt(index - 1) == c;
         }
@@ -321,7 +321,7 @@ public class Metaphone implements StringEncoder {
 
     private boolean isNextChar(final StringBuilder string, final int index, 
final char c) {
         boolean matches = false;
-        if( index >= 0 &&
+        if (index >= 0 &&
             index < string.length() - 1 ) {
             matches = string.charAt(index + 1) == c;
         }

Reply via email to