Jose Luis Pedrosa created NIFI-8375:
---------------------------------------

             Summary: java.lang.Class#newInstance Is deprecated
                 Key: NIFI-8375
                 URL: https://issues.apache.org/jira/browse/NIFI-8375
             Project: Apache NiFi
          Issue Type: Improvement
            Reporter: Jose Luis Pedrosa


Method java.lang.Class#newInstance has been deprecated, in 
[docs|https://docs.oracle.com/javase/9/docs/api/java/lang/Class.html#newInstance--]
 the right aproach is to apply the following transformation:

 

The call 

{{ clazz.newInstance() }}can be replaced by

 {{ clazz.getDeclaredConstructor().newInstance()}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to