You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by vo...@apache.org on 2015/12/30 16:24:38 UTC

ignite git commit: IGNITE-2263: Minor fixes.

Repository: ignite
Updated Branches:
  refs/heads/ignite-2263 ba4ae7f30 -> e4c49bbdd


IGNITE-2263: Minor fixes.


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

Branch: refs/heads/ignite-2263
Commit: e4c49bbdd32e9f9c8ecb87e93f0791cdc37ea334
Parents: ba4ae7f
Author: vozerov-gridgain <vo...@gridgain.com>
Authored: Wed Dec 30 18:25:34 2015 +0300
Committer: vozerov-gridgain <vo...@gridgain.com>
Committed: Wed Dec 30 18:25:34 2015 +0300

----------------------------------------------------------------------
 .../java/org/apache/ignite/internal/util/lang/GridFunc.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/e4c49bbd/modules/core/src/main/java/org/apache/ignite/internal/util/lang/GridFunc.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/util/lang/GridFunc.java b/modules/core/src/main/java/org/apache/ignite/internal/util/lang/GridFunc.java
index 73bc62b..323a2a6 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/util/lang/GridFunc.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/util/lang/GridFunc.java
@@ -1680,7 +1680,7 @@ public class GridFunc {
                     }
 
                     @Override public int size() {
-                        return F.size(c);
+                        return c.size();
                     }
 
                     @Override public boolean remove(Object o) {
@@ -1688,13 +1688,13 @@ public class GridFunc {
                     }
 
                     @Override public boolean isEmpty() {
-                        return !iterator().hasNext();
+                        return c.isEmpty();
                     }
                 };
             }
 
             @Override public boolean isEmpty() {
-                return entrySet().isEmpty();
+                return c.isEmpty();
             }
 
             @SuppressWarnings("unchecked")