You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwebbeans.apache.org by st...@apache.org on 2026/07/19 21:04:57 UTC

(openwebbeans) branch main updated: OWB-1467 use getConstructor with no param

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

asf-gitbox-commits pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/openwebbeans.git


The following commit(s) were added to refs/heads/main by this push:
     new 9313c9684 OWB-1467 use getConstructor with no param
9313c9684 is described below

commit 9313c9684d2df74efd630cc8d4e61b43a7c6d3a6
Author: Mark Struberg <st...@apache.org>
AuthorDate: Sun Jul 19 22:36:49 2026 +0200

    OWB-1467 use getConstructor with no param
---
 .../org/apache/webbeans/proxy/InterceptorDecoratorProxyFactory.java   | 2 +-
 .../main/java/org/apache/webbeans/proxy/NormalScopeProxyFactory.java  | 4 ++--
 .../src/main/java/org/apache/webbeans/proxy/SubclassProxyFactory.java | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/webbeans-impl/src/main/java/org/apache/webbeans/proxy/InterceptorDecoratorProxyFactory.java b/webbeans-impl/src/main/java/org/apache/webbeans/proxy/InterceptorDecoratorProxyFactory.java
index 48b097aea..53156142d 100644
--- a/webbeans-impl/src/main/java/org/apache/webbeans/proxy/InterceptorDecoratorProxyFactory.java
+++ b/webbeans-impl/src/main/java/org/apache/webbeans/proxy/InterceptorDecoratorProxyFactory.java
@@ -288,7 +288,7 @@ public class InterceptorDecoratorProxyFactory extends AbstractProxyFactory
             if (classToProxy.isInterface())
             {
                 parentClassFileName = Type.getInternalName(Object.class);
-                superDefaultCt = Object.class.getConstructor(null);
+                superDefaultCt = Object.class.getConstructor();
                 descriptor = Type.getConstructorDescriptor(superDefaultCt);
             }
         }
diff --git a/webbeans-impl/src/main/java/org/apache/webbeans/proxy/NormalScopeProxyFactory.java b/webbeans-impl/src/main/java/org/apache/webbeans/proxy/NormalScopeProxyFactory.java
index f6a3bd4c8..08aa84b29 100644
--- a/webbeans-impl/src/main/java/org/apache/webbeans/proxy/NormalScopeProxyFactory.java
+++ b/webbeans-impl/src/main/java/org/apache/webbeans/proxy/NormalScopeProxyFactory.java
@@ -310,12 +310,12 @@ public class NormalScopeProxyFactory extends AbstractProxyFactory
             if (classToProxy.isInterface())
             {
                 parentClassFileName = Type.getInternalName(Object.class);
-                superDefaultCt = Object.class.getConstructor(null);
+                superDefaultCt = Object.class.getConstructor();
             }
             else
             {
                 parentClassFileName = classFileName;
-                superDefaultCt = classToProxy.getDeclaredConstructor(null);
+                superDefaultCt = classToProxy.getDeclaredConstructor();
             }
 
             String descriptor = Type.getConstructorDescriptor(superDefaultCt);
diff --git a/webbeans-impl/src/main/java/org/apache/webbeans/proxy/SubclassProxyFactory.java b/webbeans-impl/src/main/java/org/apache/webbeans/proxy/SubclassProxyFactory.java
index 30f76cc8c..4bb82d7f8 100644
--- a/webbeans-impl/src/main/java/org/apache/webbeans/proxy/SubclassProxyFactory.java
+++ b/webbeans-impl/src/main/java/org/apache/webbeans/proxy/SubclassProxyFactory.java
@@ -143,14 +143,14 @@ public class SubclassProxyFactory extends AbstractProxyFactory
             if (classToProxy.isInterface())
             {
                 parentClassFileName = Type.getInternalName(Object.class);
-                superDefaultCt = Object.class.getConstructor(null);
+                superDefaultCt = Object.class.getConstructor();
             }
             else
             {
                 parentClassFileName = classFileName;
                 if (constructor == null)
                 {
-                    superDefaultCt = classToProxy.getConstructor(null);
+                    superDefaultCt = classToProxy.getConstructor();
                 }
                 else
                 {