ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [09/15] incubator-ignite git commit: # Cleanup code: remove unnecessary null-checking.
Date Mon, 19 Jan 2015 11:36:07 GMT
# Cleanup code: remove unnecessary null-checking.


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

Branch: refs/heads/ignite-49
Commit: 80b986f46340a811cd6d991218249a30f5a7ada3
Parents: 785bf10
Author: sevdokimov <sevdokimov@gridgain.com>
Authored: Fri Jan 16 16:49:13 2015 +0300
Committer: sevdokimov <sevdokimov@gridgain.com>
Committed: Fri Jan 16 16:49:13 2015 +0300

----------------------------------------------------------------------
 .../gridgain/grid/kernal/processors/cache/GridCacheMapEntry.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/80b986f4/modules/core/src/main/java/org/gridgain/grid/kernal/processors/cache/GridCacheMapEntry.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/gridgain/grid/kernal/processors/cache/GridCacheMapEntry.java
b/modules/core/src/main/java/org/gridgain/grid/kernal/processors/cache/GridCacheMapEntry.java
index 9b8945a..7b2b2a7 100644
--- a/modules/core/src/main/java/org/gridgain/grid/kernal/processors/cache/GridCacheMapEntry.java
+++ b/modules/core/src/main/java/org/gridgain/grid/kernal/processors/cache/GridCacheMapEntry.java
@@ -238,7 +238,7 @@ public abstract class GridCacheMapEntry<K, V> implements GridCacheEntryEx<K,
V>
                 assert mem != null;
 
                 if (val != null || valBytes != null) {
-                    boolean valIsByteArr = val != null && val instanceof byte[];
+                    boolean valIsByteArr = val instanceof byte[];
 
                     if (valBytes == null && !valIsByteArr)
                         valBytes = CU.marshal(cctx.shared(), val);


Mime
View raw message