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


The following commit(s) were added to refs/heads/master by this push:
     new 0982f681 Fix formatting
0982f681 is described below

commit 0982f68152de83d6cc29876fa7a4dc5933cd28cc
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sat Jul 8 09:10:41 2023 -0400

    Fix formatting
---
 src/main/java/org/apache/commons/beanutils2/MethodUtils.java       | 4 ++--
 src/main/java/org/apache/commons/beanutils2/PropertyUtilsBean.java | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/commons/beanutils2/MethodUtils.java 
b/src/main/java/org/apache/commons/beanutils2/MethodUtils.java
index a7460e21..5bd8cb8d 100644
--- a/src/main/java/org/apache/commons/beanutils2/MethodUtils.java
+++ b/src/main/java/org/apache/commons/beanutils2/MethodUtils.java
@@ -512,7 +512,7 @@ public class MethodUtils {
                                             + method2);
                             }
                             setMethodAccessible(method); // Default access 
superclass workaround
-                            myCost = 
getTotalTransformationCost(parameterTypes,method.getParameterTypes());
+                            myCost = 
getTotalTransformationCost(parameterTypes, method.getParameterTypes());
                             if ( myCost < bestMatchCost ) {
                                bestMatch = method;
                                bestMatchCost = myCost;
@@ -552,7 +552,7 @@ public class MethodUtils {
                     break;
                 }
             }
-            if (destClass.isInterface() && 
isAssignmentCompatible(destClass,srcClass)) {
+            if (destClass.isInterface() && isAssignmentCompatible(destClass, 
srcClass)) {
                 // slight penalty for interface match.
                 // we still want an exact match to override an interface 
match, but
                 // an interface match should override anything where we have 
to get a
diff --git a/src/main/java/org/apache/commons/beanutils2/PropertyUtilsBean.java 
b/src/main/java/org/apache/commons/beanutils2/PropertyUtilsBean.java
index 076260af..62819299 100644
--- a/src/main/java/org/apache/commons/beanutils2/PropertyUtilsBean.java
+++ b/src/main/java/org/apache/commons/beanutils2/PropertyUtilsBean.java
@@ -478,7 +478,7 @@ public class PropertyUtilsBean {
                 final Object[] subscript = new Object[1];
                 subscript[0] = Integer.valueOf(index);
                 try {
-                    return invokeMethod(readMethod,bean, subscript);
+                    return invokeMethod(readMethod, bean, subscript);
                 } catch (final InvocationTargetException e) {
                     if (e.getTargetException() instanceof
                             IndexOutOfBoundsException) {

Reply via email to