[
https://issues.apache.org/jira/browse/NIFI-12075?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Peter Turcsanyi updated NIFI-12075:
-----------------------------------
Description:
{{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).
was:
{{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.
> 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)