ARTEMIS-2894 Small tweak into newInstance call

This commit is contained in:
Clebert Suconic 2022-07-13 15:46:48 -04:00 committed by Gary Tully
parent d3ed11da2a
commit 0f5bd28e23
1 changed files with 1 additions and 1 deletions

View File

@ -2957,7 +2957,7 @@ public class ConfigurationImpl implements Configuration, Serializable {
// create one and initialise with name // create one and initialise with name
try { 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); beanUtilsBean.setProperty(instance, "name", name);
// this is always going to be a little hacky b/c our config is not natively property friendly // this is always going to be a little hacky b/c our config is not natively property friendly