ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sevdoki...@apache.org
Subject incubator-ignite git commit: # IGNITE-499 Cleanup code: use abbreviation.
Date Tue, 21 Apr 2015 09:49:06 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-499_1 c3b5e037c -> 774bb1ccf


# IGNITE-499 Cleanup code: use abbreviation.


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

Branch: refs/heads/ignite-499_1
Commit: 774bb1ccf06718d238c91fdd4167468277d1005c
Parents: c3b5e03
Author: sevdokimov <sevdokimov@gridgain.com>
Authored: Tue Apr 21 12:48:28 2015 +0300
Committer: sevdokimov <sevdokimov@gridgain.com>
Committed: Tue Apr 21 12:48:28 2015 +0300

----------------------------------------------------------------------
 .../org/apache/ignite/internal/util/IgniteUtils.java     | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/774bb1cc/modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java b/modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java
index 1aac985..f68f7b6 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java
@@ -1592,18 +1592,18 @@ public abstract class IgniteUtils {
             IgniteBiTuple<Collection<String>, Collection<String>> res =
cachedLocalAddr;
 
             if (res == null) {
-                List<InetAddress> localAddrs = new ArrayList<>();
+                List<InetAddress> locAddrs = new ArrayList<>();
 
                 for (NetworkInterface itf : asIterable(NetworkInterface.getNetworkInterfaces()))
{
                     for (InetAddress addr : asIterable(itf.getInetAddresses())) {
                         if (!addr.isLinkLocalAddress())
-                            localAddrs.add(addr);
+                            locAddrs.add(addr);
                     }
                 }
 
-                localAddrs = filterReachable(localAddrs);
+                locAddrs = filterReachable(locAddrs);
 
-                for (InetAddress addr : localAddrs)
+                for (InetAddress addr : locAddrs)
                     addresses(addr, addrs, hostNames);
 
                 if (F.isEmpty(addrs))
@@ -2162,9 +2162,8 @@ public abstract class IgniteUtils {
      */
     public static byte[] join(byte[]... bufs) {
         int size = 0;
-        for (byte[] buf : bufs) {
+        for (byte[] buf : bufs)
             size += buf.length;
-        }
 
         byte[] res = new byte[size];
         int position = 0;


Mime
View raw message