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-beanutils.git

commit 6e6d2317309f0b4e537776480d4991013724717c
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Aug 18 07:36:20 2024 -0400

    Remove redundant parentheses
---
 .../commons/beanutils2/locale/converters/DateLocaleConverter.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/src/main/java/org/apache/commons/beanutils2/locale/converters/DateLocaleConverter.java
 
b/src/main/java/org/apache/commons/beanutils2/locale/converters/DateLocaleConverter.java
index 30714bf2..0adbf6f5 100644
--- 
a/src/main/java/org/apache/commons/beanutils2/locale/converters/DateLocaleConverter.java
+++ 
b/src/main/java/org/apache/commons/beanutils2/locale/converters/DateLocaleConverter.java
@@ -186,7 +186,7 @@ public class DateLocaleConverter<D extends Date> extends 
BaseLocaleConverter<D>
                 }
             } else if (thisChar == '\'') {
                 quoted = true;
-            } else if ((thisChar >= 'a' && thisChar <= 'z') || (thisChar >= 
'A' && thisChar <= 'Z')) {
+            } else if (thisChar >= 'a' && thisChar <= 'z' || thisChar >= 'A' 
&& thisChar <= 'Z') {
                 final int index = fromChars.indexOf(thisChar);
                 if (index == -1) {
                     throw new IllegalArgumentException("Illegal pattern 
character '" + thisChar + "'");

Reply via email to