You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by gt...@apache.org on 2022/07/14 10:55:31 UTC
[activemq-artemis] branch main updated: ARTEMIS-2894 Small tweak into newInstance call
This is an automated email from the ASF dual-hosted git repository.
gtully pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git
The following commit(s) were added to refs/heads/main by this push:
new 0f5bd28e23 ARTEMIS-2894 Small tweak into newInstance call
0f5bd28e23 is described below
commit 0f5bd28e2366b152d6d134537cdfa1da4ec5f783
Author: Clebert Suconic <cl...@apache.org>
AuthorDate: Wed Jul 13 15:46:48 2022 -0400
ARTEMIS-2894 Small tweak into newInstance call
---
.../org/apache/activemq/artemis/core/config/impl/ConfigurationImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/config/impl/ConfigurationImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/config/impl/ConfigurationImpl.java
index 3ff379ba7d..953e6fa8a1 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/config/impl/ConfigurationImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/config/impl/ConfigurationImpl.java
@@ -2957,7 +2957,7 @@ public class ConfigurationImpl implements Configuration, Serializable {
// create one and initialise with name
try {
- Object instance = candidate.getParameterTypes()[candidate.getParameterCount() - 1].getDeclaredConstructor().newInstance((java.lang.Object[])null);
+ Object instance = candidate.getParameterTypes()[candidate.getParameterCount() - 1].getDeclaredConstructor().newInstance();
beanUtilsBean.setProperty(instance, "name", name);
// this is always going to be a little hacky b/c our config is not natively property friendly