You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by aa...@apache.org on 2019/12/10 06:13:36 UTC

[cayenne] branch STABLE-4.1 updated: explicit deprecation note for JCacheQueryCache.clear()

This is an automated email from the ASF dual-hosted git repository.

aadamchik pushed a commit to branch STABLE-4.1
in repository https://gitbox.apache.org/repos/asf/cayenne.git


The following commit(s) were added to refs/heads/STABLE-4.1 by this push:
     new 6acfd85  explicit deprecation note for JCacheQueryCache.clear()
6acfd85 is described below

commit 6acfd857317220877e93be949d1567956ededd06
Author: Andrus Adamchik <an...@objectstyle.com>
AuthorDate: Tue Dec 10 09:13:12 2019 +0300

    explicit deprecation note for JCacheQueryCache.clear()
---
 .../src/main/java/org/apache/cayenne/jcache/JCacheQueryCache.java    | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/cayenne-jcache/src/main/java/org/apache/cayenne/jcache/JCacheQueryCache.java b/cayenne-jcache/src/main/java/org/apache/cayenne/jcache/JCacheQueryCache.java
index a6d0e17..b21b026 100644
--- a/cayenne-jcache/src/main/java/org/apache/cayenne/jcache/JCacheQueryCache.java
+++ b/cayenne-jcache/src/main/java/org/apache/cayenne/jcache/JCacheQueryCache.java
@@ -99,6 +99,11 @@ public class JCacheQueryCache implements QueryCache {
         }
     }
 
+    /**
+     * @deprecated since 4.0 . Note that this method should not be relied upon to clear caches consistently. It only
+     * operates on a subset of caches that were created by this object, and ignores any preconfigured caches.
+     */
+    @Deprecated
     @Override
     public void clear() {
         for (String name : seenCacheNames) {