This is an automated email from the ASF dual-hosted git repository. clebertsuconic pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git
commit d3ed11da2a45308038a3f1be8e0552bba4a23ecf Author: Gary Tully <[email protected]> AuthorDate: Wed Jul 13 16:08:05 2022 +0100 ARTEMIS-3894 - resolve errorprone warn on vargs 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 d43796cc05..3ff379ba7d 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(null); + Object instance = candidate.getParameterTypes()[candidate.getParameterCount() - 1].getDeclaredConstructor().newInstance((java.lang.Object[])null); beanUtilsBean.setProperty(instance, "name", name); // this is always going to be a little hacky b/c our config is not natively property friendly
