#ignite-333: IgniteCache.localClear(K key) return void.

Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/4f26c2ca
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/4f26c2ca
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/4f26c2ca

Branch: refs/heads/ignite-45
Commit: 4f26c2ca886d088bf0b51a52e37422856bbf69f7
Parents: 0b2cd97
Author: ivasilinets <ivasilin...@gridgain.com>
Authored: Fri Mar 13 12:04:34 2015 +0300
Committer: ivasilinets <ivasilin...@gridgain.com>
Committed: Fri Mar 13 12:04:34 2015 +0300

----------------------------------------------------------------------
 modules/core/src/main/java/org/apache/ignite/IgniteCache.java  | 5 +----
 .../ignite/internal/processors/cache/IgniteCacheProxy.java     | 6 ++----
 2 files changed, 3 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/4f26c2ca/modules/core/src/main/java/org/apache/ignite/IgniteCache.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/IgniteCache.java 
b/modules/core/src/main/java/org/apache/ignite/IgniteCache.java
index 0c680fe..0944893 100644
--- a/modules/core/src/main/java/org/apache/ignite/IgniteCache.java
+++ b/modules/core/src/main/java/org/apache/ignite/IgniteCache.java
@@ -416,11 +416,8 @@ public interface IgniteCache<K, V> extends 
javax.cache.Cache<K, V>, IgniteAsyncS
      * Transactional semantics must be guaranteed outside of Ignite.
      *
      * @param key Key to clear.
-     * @return {@code True} if entry was successfully cleared from cache, 
{@code false}
-     * if entry was in use at the time of this method invocation and could not 
be
-     * cleared.
      */
-    public boolean localClear(K key);
+    public void localClear(K key);
 
     /**
      * Clears entries from this cache and swap storage only if the entry

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/4f26c2ca/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/IgniteCacheProxy.java
----------------------------------------------------------------------
diff --git 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/IgniteCacheProxy.java
 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/IgniteCacheProxy.java
index 14481cb..f936ced 100644
--- 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/IgniteCacheProxy.java
+++ 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/IgniteCacheProxy.java
@@ -1097,16 +1097,14 @@ public class IgniteCacheProxy<K, V> extends 
AsyncSupportAdapter<IgniteCache<K, V
     }
 
     /** {@inheritDoc} */
-    @Override public boolean localClear(K key) {
+    @Override public void localClear(K key) {
         GridCacheProjectionImpl<K, V> prev = gate.enter(prj);
 
         try {
-            return delegate.clearLocally(key);
+            delegate.clearLocally(key);
         }
         finally {
             gate.leave(prev);
-
-            return false;
         }
     }
 

Reply via email to