[
https://issues.apache.org/jira/browse/NIFI-8375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Stieglitz resolved NIFI-8375.
------------------------------------
Resolution: Not A Problem
In the current 2.8 code base there are no instances of this.
> 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
> Priority: Major
>
> 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.20.10#820010)