[
https://issues.apache.org/jira/browse/NIFI-12075?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17766800#comment-17766800
]
ASF subversion and git services commented on NIFI-12075:
--------------------------------------------------------
Commit ebd0d60e49e096841b12a48811c0c6ad941323d6 in nifi's branch
refs/heads/main from Peter Turcsanyi
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=ebd0d60e49 ]
NIFI-12075 Deprecated ComponentLog methods with Object[] and Throwable
- Updated component references to remove use of Object[] wrapping for log
methods
This closes #7748
Signed-off-by: David Handermann <[email protected]>
> Deprecate log methods with Object[] + Throwable parameters in ComponentLog
> --------------------------------------------------------------------------
>
> Key: NIFI-12075
> URL: https://issues.apache.org/jira/browse/NIFI-12075
> Project: Apache NiFi
> Issue Type: Improvement
> Reporter: Peter Turcsanyi
> Assignee: Peter Turcsanyi
> Priority: Major
>
> {{ComponentLog}} defines
> {code:java}
> void error(String msg, Object[] os, Throwable t)
> {code}
> and similar methods where the caller needs to create the {{Object}} array
> explicitly which results in boilerplate and less readable code.
> The preferred way has been for a while to use the vararg signature instead:
> {code:java}
> void error(String msg, Object... os)
> {code}
> These methods can also handle the last {{Throwable}} argument properly.
> The {{Object[]}} methods should be deprecated and the existing usages should
> be migrated to use the vararg methods. In 2.0 the deprecated methods can be
> removed (NIFI-12076).
--
This message was sent by Atlassian Jira
(v8.20.10#820010)