[
https://issues.apache.org/jira/browse/NIFI-14116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17908494#comment-17908494
]
ASF subversion and git services commented on NIFI-14116:
--------------------------------------------------------
Commit bbc05cd34eaf1f56fa1f5302aed52af103c142a0 in nifi's branch
refs/heads/main from David Handermann
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=bbc05cd34e ]
NIFI-14116 Added PMD Rule UnnecessaryVarargsArrayCreation
This closes #9599
- Removed unnecessary array creation from remaining classes
- Suppressed warnings on CapturingLogger based on interface definition
Signed-off-by: Joseph Witt <[email protected]>
> Add PMD Rule UnnecessaryVarargsArrayCreation
> --------------------------------------------
>
> Key: NIFI-14116
> URL: https://issues.apache.org/jira/browse/NIFI-14116
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Tools and Build
> Reporter: David Handermann
> Assignee: David Handermann
> Priority: Minor
> Fix For: 2.2.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Following efforts to remove unnecessary array object creation for logging
> statements, the PMD rule UnnecessaryVarargsArrayCreation should be added to
> the standard set of project rules.
> The
> [UnnecessaryVarargsArrayCreation|https://pmd.github.io/pmd/pmd_rules_java_bestpractices.html#unnecessaryvarargsarraycreation]
> rule detects method invocations where an object array is not required.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)