clebertsuconic commented on code in PR #4147:
URL: https://github.com/apache/activemq-artemis/pull/4147#discussion_r920293697
##########
artemis-server/src/main/java/org/apache/activemq/artemis/core/config/impl/ConfigurationImpl.java:
##########
@@ -2957,7 +2957,7 @@ private Object newNamedInstanceForCollection(String
collectionPropertyName, Obje
// 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);
Review Comment:
couldn't this just be simple as:
```java
Object instance =
candidate.getParameterTypes()[candidate.getParameterCount() -
1].getDeclaredConstructor().newInstance();
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]