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

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

commit e20f22c4f0f822389d844fa625d5e52908ee8b47
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Aug 18 08:47:52 2024 -0400

    Remove redundant parentheses
---
 src/main/java/org/apache/commons/beanutils/MethodUtils.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/beanutils/MethodUtils.java 
b/src/main/java/org/apache/commons/beanutils/MethodUtils.java
index 578628b3..f4343150 100644
--- a/src/main/java/org/apache/commons/beanutils/MethodUtils.java
+++ b/src/main/java/org/apache/commons/beanutils/MethodUtils.java
@@ -176,7 +176,7 @@ public class MethodUtils {
      * @param method The method to cache
      */
     private static void cacheMethod(final MethodDescriptor md, final Method 
method) {
-        if (CACHE_METHODS && (method != null)) {
+        if (CACHE_METHODS && method != null) {
             cache.put(md, new WeakReference<>(method));
         }
     }

Reply via email to