qqu0127 commented on code in PR #2149:
URL: https://github.com/apache/helix/pull/2149#discussion_r900399646


##########
helix-core/src/main/java/org/apache/helix/cloud/event/helix/HelixCloudEventListener.java:
##########
@@ -107,7 +107,7 @@ private DefaultCloudEventCallbackImpl 
loadCloudEventCallbackImplClass(String imp
     try {
       LOG.info("Loading class: " + implClassName);
       implClass = (DefaultCloudEventCallbackImpl) 
HelixUtil.loadClass(getClass(), implClassName)
-          .newInstance();
+          .getConstructor().newInstance();
     } catch (Exception e) {
       implClass = DefaultCloudEventCallbackImpl.class.newInstance();

Review Comment:
   Let's use constructor for this one



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to