From 30d457c622208dac3fa31bb7e51448d4f224ea45 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Wed, 16 Mar 2016 17:13:06 +0100 Subject: [PATCH] Deprecate addCache --- .../org/springframework/cache/support/AbstractCacheManager.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spring-context/src/main/java/org/springframework/cache/support/AbstractCacheManager.java b/spring-context/src/main/java/org/springframework/cache/support/AbstractCacheManager.java index 87ab379879..bdef3ea854 100644 --- a/spring-context/src/main/java/org/springframework/cache/support/AbstractCacheManager.java +++ b/spring-context/src/main/java/org/springframework/cache/support/AbstractCacheManager.java @@ -131,7 +131,9 @@ public abstract class AbstractCacheManager implements CacheManager, Initializing /** * Dynamically register an additional Cache with this manager. * @param cache the Cache to register + * @deprecated as of Spring 4.3, in favor of {@link #getMissingCache(String)} */ + @Deprecated protected final void addCache(Cache cache) { String name = cache.getName(); synchronized (this.cacheMap) {