You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ag...@apache.org on 2015/07/09 03:47:15 UTC

[11/14] incubator-ignite git commit: IGNITE-950 - Minor.

IGNITE-950 - Minor.


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

Branch: refs/heads/ignite-950
Commit: 70e9b343df41e4e11bb55a3b2b0e68c348cd9598
Parents: 7512412
Author: Alexey Goncharuk <ag...@gridgain.com>
Authored: Wed Jul 8 15:24:21 2015 -0700
Committer: Alexey Goncharuk <ag...@gridgain.com>
Committed: Wed Jul 8 15:24:21 2015 -0700

----------------------------------------------------------------------
 .../internal/processors/cache/CacheIndexedObjectImpl.java    | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/70e9b343/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheIndexedObjectImpl.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheIndexedObjectImpl.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheIndexedObjectImpl.java
index 8993039..0b2996e 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheIndexedObjectImpl.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheIndexedObjectImpl.java
@@ -19,16 +19,13 @@ package org.apache.ignite.internal.processors.cache;
 
 import org.apache.ignite.*;
 import org.apache.ignite.internal.util.*;
-import org.apache.ignite.internal.util.typedef.internal.*;
 import org.apache.ignite.marshaller.optimized.*;
 import org.apache.ignite.plugin.extensions.communication.*;
 import org.jetbrains.annotations.*;
 import sun.misc.*;
 
 import java.io.*;
-import java.lang.reflect.*;
 import java.nio.*;
-import java.util.concurrent.*;
 
 /**
  * Cache object implementation for classes that support footer injection is their serialized form thus enabling fields
@@ -341,11 +338,12 @@ public class CacheIndexedObjectImpl extends CacheObjectAdapter {
      * @param checkCls Check class definition presence on node flag.
      * @return {@code true} if keep, {@code false} otherwise.
      */
+    @SuppressWarnings("SimplifiableIfStatement")
     protected boolean keepDeserialized(CacheObjectContext ctx, boolean checkCls) {
         if (ctx.copyOnGet())
             return false;
 
-        return checkCls ? hasClassOnNode(ctx) : true;
+        return !checkCls || hasClassOnNode(ctx);
     }
 
     /**
@@ -368,7 +366,7 @@ public class CacheIndexedObjectImpl extends CacheObjectAdapter {
 
             hasClass = cls != null;
         }
-        catch (Exception e) {
+        catch (Exception ignore) {
             hasClass = false;
         }