ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sevdoki...@apache.org
Subject [2/2] incubator-ignite git commit: # Remove incorrect implementation of unwrap() method. (cherry picked from commit 844a84a)
Date Thu, 12 Feb 2015 17:02:07 GMT
# Remove incorrect implementation of unwrap() method.
(cherry picked from commit 844a84a)


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

Branch: refs/heads/sprint-1
Commit: 46b448931e4c274b609a29b66243ea1af3a51e80
Parents: bb909c0
Author: sevdokimov <sevdokimov@gridgain.com>
Authored: Thu Feb 12 13:00:57 2015 +0300
Committer: sevdokimov <sevdokimov@gridgain.com>
Committed: Thu Feb 12 20:01:29 2015 +0300

----------------------------------------------------------------------
 .../internal/processors/cache/CacheVersionedEntryImpl.java  | 9 ---------
 1 file changed, 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/46b44893/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheVersionedEntryImpl.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheVersionedEntryImpl.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheVersionedEntryImpl.java
index a31c7e2..1b2fa50 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheVersionedEntryImpl.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheVersionedEntryImpl.java
@@ -47,15 +47,6 @@ public class CacheVersionedEntryImpl<K, V> extends CacheEntryImpl<K,
V> {
     }
 
     /** {@inheritDoc} */
-    @SuppressWarnings("unchecked")
-    @Override public <T> T unwrap(Class<T> cls) {
-        if (!cls.equals(getClass()))
-            throw new IllegalArgumentException("Unwrapping to class is not supported: " +
cls);
-
-        return (T)this;
-    }
-
-    /** {@inheritDoc} */
     public String toString() {
         return "VersionedEntry [key=" + getKey() + ", val=" + getValue() + ", ver=" + ver
+ ']';
     }


Mime
View raw message