Daniel Stieglitz created NIFI-15517:
---------------------------------------

             Summary: Replaced use of deprecated ConcurrentTaskScheduler 
default constructor with API suggested replacement
                 Key: NIFI-15517
                 URL: https://issues.apache.org/jira/browse/NIFI-15517
             Project: Apache NiFi
          Issue Type: Improvement
            Reporter: Daniel Stieglitz
            Assignee: Daniel Stieglitz


In recent build the following deprecation notice indicates the default 
constructor for ConcurrentTaskScheduler is deprecated.
{code:java}
2026-01-27T23:19:38.4234681Z [WARNING] 
/home/runner/work/nifi/nifi/nifi-extension-bundles/nifi-email-bundle/nifi-email-processors/src/main/java/org/apache/nifi/processors/email/AbstractEmailProcessor.java:[332,82]
 [deprecation] ConcurrentTaskScheduler() in ConcurrentTaskScheduler has been 
deprecated{code}
The suggestion per the 
[javadocs|https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/scheduling/concurrent/ConcurrentTaskScheduler.html#%3Cinit%3E()]
 is to use the constructor which takes a ScheduledExecutorService as an 
argument.

The goal of this ticket is to replace the use of the deprecated 
ConcurrentTaskScheduler with the use of the constructor which takes a 
ScheduledExecutorService as an argument.



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

Reply via email to