ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sevdoki...@apache.org
Subject [1/2] incubator-ignite git commit: IGNITE-709 Code cleanup.
Date Wed, 13 May 2015 15:42:12 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-709_2 32ce6a5f2 -> ebc1a9832


IGNITE-709 Code cleanup.


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

Branch: refs/heads/ignite-709_2
Commit: 05f1488dc63322c513fe743ac127a0cf3f163395
Parents: 32ce6a5
Author: sevdokimov <sevdokimov@gridgain.com>
Authored: Wed May 13 16:05:40 2015 +0300
Committer: sevdokimov <sevdokimov@gridgain.com>
Committed: Wed May 13 16:05:40 2015 +0300

----------------------------------------------------------------------
 .../spi/discovery/tcp/TcpClientDiscoverySpiSelfTest.java    | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/05f1488d/modules/core/src/test/java/org/apache/ignite/spi/discovery/tcp/TcpClientDiscoverySpiSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/spi/discovery/tcp/TcpClientDiscoverySpiSelfTest.java
b/modules/core/src/test/java/org/apache/ignite/spi/discovery/tcp/TcpClientDiscoverySpiSelfTest.java
index 507b3e7..1268a23 100644
--- a/modules/core/src/test/java/org/apache/ignite/spi/discovery/tcp/TcpClientDiscoverySpiSelfTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/spi/discovery/tcp/TcpClientDiscoverySpiSelfTest.java
@@ -128,7 +128,7 @@ public class TcpClientDiscoverySpiSelfTest extends GridCommonAbstractTest
{
                 if (addr.startsWith("/"))
                     addr = addr.substring(1);
 
-                ipFinder.setAddresses(Arrays.asList(addr));
+                ipFinder.setAddresses(Collections.singletonList(addr));
             }
 
             disco.setIpFinder(ipFinder);
@@ -503,8 +503,6 @@ public class TcpClientDiscoverySpiSelfTest extends GridCommonAbstractTest
{
 
         checkNodes(3, 3);
 
-//        setClientRouter(2, 2);
-
         srvFailedLatch = new CountDownLatch(2 + 2);
         clientFailedLatch = new CountDownLatch(2 + 2);
 
@@ -776,7 +774,7 @@ public class TcpClientDiscoverySpiSelfTest extends GridCommonAbstractTest
{
         long startTime = -1;
 
         for (Ignite g : G.allGrids()) {
-            IgniteEx kernal = (IgniteKernal)g;
+            IgniteEx kernal = (IgniteEx)g;
 
             assertTrue(kernal.context().discovery().gridStartTime() > 0);
 
@@ -802,7 +800,7 @@ public class TcpClientDiscoverySpiSelfTest extends GridCommonAbstractTest
{
         if (addr.startsWith("/"))
             addr = addr.substring(1);
 
-        ipFinder.setAddresses(Arrays.asList(addr));
+        ipFinder.setAddresses(Collections.singletonList(addr));
     }
 
     /**
@@ -992,6 +990,7 @@ public class TcpClientDiscoverySpiSelfTest extends GridCommonAbstractTest
{
     /**
      */
     private static class MessageListener implements IgniteBiPredicate<UUID, Object>
{
+        /** */
         @IgniteInstanceResource
         private Ignite ignite;
 


Mime
View raw message