Skip to content

Commit 421c464

Browse files
committed
Deprecate CachingOperationInvoker#apply
This commit deprecates the only public accessor to `CacheOperationInvoker` so that we can make the entire class package private in the next feature release. Closes gh-19089
1 parent fc36b6b commit 421c464

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/invoker/cache/CachingOperationInvoker.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ private CachedResponse createCachedResponse(Object response, long accessTime) {
111111
* @param timeToLive the maximum time in milliseconds that a response can be cached
112112
* @return a caching version of the invoker or the original instance if caching is not
113113
* required
114+
* @deprecated as of 2.3.0 to make it package-private in 2.4
114115
*/
116+
@Deprecated
115117
public static OperationInvoker apply(OperationInvoker invoker, long timeToLive) {
116118
if (timeToLive > 0) {
117119
return new CachingOperationInvoker(invoker, timeToLive);

0 commit comments

Comments
 (0)