nifi-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Bean (Jira)" <j...@apache.org>
Subject [jira] [Created] (NIFI-7387) Update ComponentLog to use varargs instead of array
Date Wed, 22 Apr 2020 14:47:00 GMT
Mark Bean created NIFI-7387:
-------------------------------

             Summary: Update ComponentLog to use varargs instead of 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


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)

Mime
View raw message