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

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

Commit 06c0139ac19e28fddb755b72cb230f1602fba993 in nifi's branch 
refs/heads/main from dan-s1
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=06c0139ac1 ]

NIFI-14997 Placed cast before null to avoid warning in 
TestStandardLoggingContext (#10329)

Signed-off-by: David Handermann <[email protected]>

> Confusing argument 'null', unclear if a varargs or non-varargs call is 
> desired in TestStandardLoggingContext 
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: NIFI-14997
>                 URL: https://issues.apache.org/jira/browse/NIFI-14997
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Daniel Stieglitz
>            Assignee: Daniel Stieglitz
>            Priority: Trivial
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The issue as well as the solution is seen in the logs below.
> {code:java}
> 2025-09-18T21:43:34.7612184Z [WARNING] 
> /home/runner/work/nifi/nifi/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/test/java/org/apache/nifi/logging/TestStandardLoggingContext.java:[51,63]
>  non-varargs call of varargs method with inexact argument type for last 
> parameter;
> 2025-09-18T21:43:34.7614277Z   cast to String for a varargs call
> 2025-09-18T21:43:34.7615169Z   cast to String[] for a non-varargs call and to 
> suppress this warning{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to