Repository: incubator-ignite Updated Branches: refs/heads/ignite-96 [created] 18d4ab4db
# Remove incorrect implementation of unwrap() method. Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/844a84ae Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/844a84ae Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/844a84ae Branch: refs/heads/ignite-96 Commit: 844a84ae14f72bcf2f6b06091ad98c5ec06896da Parents: d72fe0d Author: sevdokimov <sevdoki...@gridgain.com> Authored: Thu Feb 12 13:00:57 2015 +0300 Committer: sevdokimov <sevdoki...@gridgain.com> Committed: Thu Feb 12 13:00:57 2015 +0300 ---------------------------------------------------------------------- .../internal/processors/cache/CacheVersionedEntryImpl.java | 9 --------- 1 file changed, 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/844a84ae/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 + ']'; }