ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yzhda...@apache.org
Subject [17/50] [abbrv] incubator-ignite git commit: #Tests: remove GridUtils.isGridGain
Date Wed, 28 Jan 2015 13:50:55 GMT
#Tests: remove GridUtils.isGridGain


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

Branch: refs/heads/ignite-113
Commit: a421b3a5e324691fe95fa7d582827d7a20990416
Parents: d97965b
Author: ivasilinets <ivasilinets@gridgain.com>
Authored: Wed Jan 28 11:59:26 2015 +0300
Committer: ivasilinets <ivasilinets@gridgain.com>
Committed: Wed Jan 28 11:59:26 2015 +0300

----------------------------------------------------------------------
 .../java/org/apache/ignite/internal/util/GridUtils.java | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/a421b3a5/modules/core/src/main/java/org/apache/ignite/internal/util/GridUtils.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/util/GridUtils.java b/modules/core/src/main/java/org/apache/ignite/internal/util/GridUtils.java
index 499829e..7f17969 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/util/GridUtils.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/util/GridUtils.java
@@ -5559,7 +5559,7 @@ public abstract class GridUtils {
             }
         }
         // Don't go into internal GridGain structures.
-        else if (isGridGain(obj.getClass()))
+        else if (isIgnite(obj.getClass()))
             return null;
         else if (obj instanceof Iterable)
             for (Object o : (Iterable<?>)obj) {
@@ -5590,16 +5590,6 @@ public abstract class GridUtils {
     }
 
     /**
-     * Checks if given class is of {@code GridGain} type.
-     *
-     * @param cls Class to check.
-     * @return {@code True} if given class is of {@code GridGain} type.
-     */
-    public static boolean isGridGain(Class<?> cls) {
-        return cls.getName().startsWith("org.gridgain");
-    }
-
-    /**
      * Checks if given class is of {@code Ignite} type.
      *
      * @param cls Class to check.


Mime
View raw message