Fixed compilation for Java 8
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/c09d61a8 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/c09d61a8 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/c09d61a8 Branch: refs/heads/ignite-2407 Commit: c09d61a84bcf40d94876138ca79bcb02067f0364 Parents: 452673d Author: Denis Magda <[email protected]> Authored: Wed Mar 2 13:06:28 2016 +0300 Committer: Denis Magda <[email protected]> Committed: Wed Mar 2 13:06:28 2016 +0300 ---------------------------------------------------------------------- .../ignite/internal/binary/BinaryEnumObjectImpl.java | 2 +- .../cache/IgniteCacheConfigVariationsFullApiTest.java | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/c09d61a8/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryEnumObjectImpl.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryEnumObjectImpl.java b/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryEnumObjectImpl.java index 0486db9..2940828 100644 --- a/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryEnumObjectImpl.java +++ b/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryEnumObjectImpl.java @@ -112,7 +112,7 @@ public class BinaryEnumObjectImpl implements BinaryObjectEx, Externalizable, Cac @Override public <T> T deserialize() throws BinaryObjectException { Class cls = BinaryUtils.resolveClass(ctx, typeId, clsName, ctx.configuration().getClassLoader(), true); - return BinaryEnumCache.get(cls, ord); + return (T)BinaryEnumCache.get(cls, ord); } /** {@inheritDoc} */ http://git-wip-us.apache.org/repos/asf/ignite/blob/c09d61a8/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheConfigVariationsFullApiTest.java ---------------------------------------------------------------------- diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheConfigVariationsFullApiTest.java b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheConfigVariationsFullApiTest.java index 2ba7bb9..ded5a14 100644 --- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheConfigVariationsFullApiTest.java +++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheConfigVariationsFullApiTest.java @@ -1529,8 +1529,8 @@ public class IgniteCacheConfigVariationsFullApiTest extends IgniteCacheConfigVar checkSize(F.asSet("key1", "key2")); - assert jcache().get("key1") == 10; - assert jcache().get("key2") == 11; + assert (Integer)jcache().get("key1") == 10; + assert (Integer)jcache().get("key2") == 11; } /** @@ -4113,7 +4113,7 @@ public class IgniteCacheConfigVariationsFullApiTest extends IgniteCacheConfigVar try (Transaction ignored = transactions().txStart(PESSIMISTIC, REPEATABLE_READ)) { jcache().put("key", 1); - assert jcache().get("key") == 1; + assert (Integer)jcache().get("key") == 1; } } } @@ -4126,7 +4126,7 @@ public class IgniteCacheConfigVariationsFullApiTest extends IgniteCacheConfigVar try (Transaction ignored = transactions().txStart(PESSIMISTIC, REPEATABLE_READ)) { jcache().put("key", 1); - assert jcache().getAndPut("key", 2) == 1; + assert (Integer)jcache().getAndPut("key", 2) == 1; } } } @@ -4151,8 +4151,8 @@ public class IgniteCacheConfigVariationsFullApiTest extends IgniteCacheConfigVar } assert map.size() == 2; - assert map.get("key1") == 1; - assert map.get("key2") == 2; + assert (Integer)map.get("key1") == 1; + assert (Integer)map.get("key2") == 2; } /**
