[
https://issues.apache.org/jira/browse/NIFI-15947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pierre Villard resolved NIFI-15947.
-----------------------------------
Fix Version/s: 2.10.0
Resolution: Fixed
> Replace deprecated method expireAfterWrite of
> com.google.common.cache.CacheBuilder with suggested replacement
> ---------------------------------------------------------------------------------------------------------------
>
> Key: NIFI-15947
> URL: https://issues.apache.org/jira/browse/NIFI-15947
> Project: Apache NiFi
> Issue Type: Improvement
> Reporter: Daniel Stieglitz
> Assignee: Daniel Stieglitz
> Priority: Minor
> Fix For: 2.10.0
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> Per the CacheBuilder
> [expireAfterWrite|https://www.javadoc.io/static/com.google.guava/guava/33.6.0-jre/com/google/common/cache/CacheBuilder.html#expireAfterWrite(long,java.util.concurrent.TimeUnit)]
> javadoc, the two argument method of {{expireAfterWrite}} is deprecated and
> should be replaced with a single argument method {{{}expireAfterWrite{}}}.
> Example of deprecation log messages.
> {code:java}
> 2026-05-14T08:49:20.8109059Z [WARNING]
> /home/runner/work/nifi/nifi/nifi-registry/nifi-registry-core/nifi-registry-web-api/src/main/java/org/apache/nifi/registry/web/security/authentication/oidc/OidcService.java:[73,70]
> [deprecation] expireAfterWrite(long,TimeUnit) in CacheBuilder has been
> deprecated
> 2026-05-14T08:49:20.8315351Z [WARNING]
> /home/runner/work/nifi/nifi/nifi-registry/nifi-registry-core/nifi-registry-web-api/src/main/java/org/apache/nifi/registry/web/security/authentication/oidc/OidcService.java:[74,70]
> [deprecation] expireAfterWrite(long,TimeUnit) in CacheBuilder has been
> deprecated{code}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)