[ 
https://issues.apache.org/jira/browse/NIFI-7387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17259875#comment-17259875
 ] 

ASF subversion and git services commented on NIFI-7387:
-------------------------------------------------------

Commit 954c09d0c31fa6f31d414c364f142742bf7cda91 in nifi's branch 
refs/heads/main from Mark Bean
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=954c09d ]

NIFI-7387: update ComponentLog API to accept Object varargs instead of array

This closes #4225.

Signed-off-by: Mark Payne <[email protected]>


> Update ComponentLog to use varargs in addition to array
> -------------------------------------------------------
>
>                 Key: NIFI-7387
>                 URL: https://issues.apache.org/jira/browse/NIFI-7387
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Core Framework
>    Affects Versions: 1.11.4
>            Reporter: Mark Bean
>            Assignee: Mark Bean
>            Priority: Minor
>          Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> The ComponentLog interface uses an Object array as the collection of 
> substitution values for the log message. This requires calls to the methods 
> to create an object array as in:
> logger.info("value is {}", new Object[] { someValue });
> Updating the interface to accept varargs allows for cleaner, more concise 
> code as in:
> logger.info("value is {}", someValue);



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

Reply via email to