ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From voze...@apache.org
Subject [6/6] ignite git commit: MInors.
Date Tue, 09 Aug 2016 07:45:48 GMT
MInors.


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

Branch: refs/heads/ignite-2545
Commit: d2518fdeea4833585db0cab1c3dfec69a1fccf37
Parents: a01391c
Author: vozerov-gridgain <vozerov@gridgain.com>
Authored: Tue Aug 9 10:44:54 2016 +0300
Committer: vozerov-gridgain <vozerov@gridgain.com>
Committed: Tue Aug 9 10:44:54 2016 +0300

----------------------------------------------------------------------
 .../apache/ignite/internal/util/future/GridCompoundFuture.java  | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/d2518fde/modules/core/src/main/java/org/apache/ignite/internal/util/future/GridCompoundFuture.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/util/future/GridCompoundFuture.java
b/modules/core/src/main/java/org/apache/ignite/internal/util/future/GridCompoundFuture.java
index 80fac56..14b6a16 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/util/future/GridCompoundFuture.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/util/future/GridCompoundFuture.java
@@ -286,11 +286,8 @@ public class GridCompoundFuture<T, R> extends GridFutureAdapter<R>
implements Ig
      */
     @SuppressWarnings("unchecked")
     protected IgniteInternalFuture<T> future(int idx) {
-        assert idx >= 0;
-        assert idx < futuresCount();
-        assert futs != null;
-
         assert Thread.holdsLock(sync);
+        assert futs != null && idx >= 0 && idx < futuresCount();
 
         if (futs instanceof IgniteInternalFuture) {
             assert idx == 0;


Mime
View raw message