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:14:08 UTC

[cayenne] branch master 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 master
in repository https://gitbox.apache.org/repos/asf/cayenne.git


The following commit(s) were added to refs/heads/master by this push:
     new 2b479e8  explicit deprecation note for JCacheQueryCache.clear()
2b479e8 is described below

commit 2b479e8eaccaf1c1605d9f83e8690bf2164faabf
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 fbe4886..ceb7c27 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) {