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

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


The following commit(s) were added to refs/heads/1.X by this push:
     new 4003ba93 Flip null test
4003ba93 is described below

commit 4003ba93bd2878e6d57c8749a86cb90f902aa5e5
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Jul 5 09:46:04 2026 -0400

    Flip null test
---
 src/main/java/org/apache/commons/beanutils/ConstructorUtils.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/java/org/apache/commons/beanutils/ConstructorUtils.java 
b/src/main/java/org/apache/commons/beanutils/ConstructorUtils.java
index f4d9a5bd..5730f260 100644
--- a/src/main/java/org/apache/commons/beanutils/ConstructorUtils.java
+++ b/src/main/java/org/apache/commons/beanutils/ConstructorUtils.java
@@ -260,7 +260,7 @@ public class ConstructorUtils {
             InvocationTargetException,
             InstantiationException {
 
-        if (null == args) {
+        if (args == null) {
             args = EMPTY_OBJECT_ARRAY;
         }
         final int arguments = args.length;
@@ -307,7 +307,7 @@ public class ConstructorUtils {
 
         final Constructor<T> ctor =
             getMatchingAccessibleConstructor(klass, parameterTypes);
-        if (null == ctor) {
+        if (ctor == null) {
             throw new NoSuchMethodException(
                 "No such accessible constructor on object: " + 
klass.getName());
         }
@@ -366,7 +366,7 @@ public class ConstructorUtils {
             InvocationTargetException,
             InstantiationException {
 
-        if (null == args) {
+        if (args == null) {
             args = EMPTY_OBJECT_ARRAY;
         }
         final int arguments = args.length;
@@ -414,7 +414,7 @@ public class ConstructorUtils {
         }
 
         final Constructor<T> ctor = getAccessibleConstructor(klass, 
parameterTypes);
-        if (null == ctor) {
+        if (ctor == null) {
             throw new NoSuchMethodException(
                 "No such accessible constructor on object: " + 
klass.getName());
         }

Reply via email to