This is an automated email from the ASF dual-hosted git repository.
exceptionfactory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git
The following commit(s) were added to refs/heads/main by this push:
new 06c0139ac1 NIFI-14997 Placed cast before null to avoid warning in
TestStandardLoggingContext (#10329)
06c0139ac1 is described below
commit 06c0139ac19e28fddb755b72cb230f1602fba993
Author: dan-s1 <[email protected]>
AuthorDate: Fri Sep 19 14:49:56 2025 -0400
NIFI-14997 Placed cast before null to avoid warning in
TestStandardLoggingContext (#10329)
Signed-off-by: David Handermann <[email protected]>
---
.../test/java/org/apache/nifi/logging/TestStandardLoggingContext.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/test/java/org/apache/nifi/logging/TestStandardLoggingContext.java
b/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/test/java/org/apache/nifi/logging/TestStandardLoggingContext.java
index a6ff4a4dd3..81a5571ae0 100644
---
a/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/test/java/org/apache/nifi/logging/TestStandardLoggingContext.java
+++
b/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/test/java/org/apache/nifi/logging/TestStandardLoggingContext.java
@@ -48,7 +48,7 @@ class TestStandardLoggingContext {
//component with pg with no setting returns optional empty
LoggingContext context = new StandardLoggingContext(processor);
when(processor.getProcessGroup()).thenReturn(processGroup);
- when(processGroup.getLogFileSuffix()).thenReturn(null, null);
+ when(processGroup.getLogFileSuffix()).thenReturn(null, (String[])
null);
when(processGroup.isRootGroup()).thenReturn(Boolean.FALSE,
Boolean.TRUE);
when(processGroup.getParent()).thenReturn(processGroup);