You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2014/08/28 08:50:26 UTC
[2/3] git commit: Fixed a CS error in camel-netty4
Fixed a CS error in camel-netty4
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/2f88e14a
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/2f88e14a
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/2f88e14a
Branch: refs/heads/master
Commit: 2f88e14ad2a321c96b302e1e9426e24c4003e891
Parents: a94f95b
Author: Willem Jiang <wi...@gmail.com>
Authored: Thu Aug 28 14:29:47 2014 +0800
Committer: Willem Jiang <wi...@gmail.com>
Committed: Thu Aug 28 14:49:53 2014 +0800
----------------------------------------------------------------------
.../java/org/apache/camel/component/netty4/util/SubnetUtils.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/2f88e14a/components/camel-netty4/src/main/java/org/apache/camel/component/netty4/util/SubnetUtils.java
----------------------------------------------------------------------
diff --git a/components/camel-netty4/src/main/java/org/apache/camel/component/netty4/util/SubnetUtils.java b/components/camel-netty4/src/main/java/org/apache/camel/component/netty4/util/SubnetUtils.java
index 9edba1a..7b29995 100644
--- a/components/camel-netty4/src/main/java/org/apache/camel/component/netty4/util/SubnetUtils.java
+++ b/components/camel-netty4/src/main/java/org/apache/camel/component/netty4/util/SubnetUtils.java
@@ -219,8 +219,10 @@ public class SubnetUtils {
if (ct == 0) {
return addresses;
}
- for (int add = low(), j = 0; add <= high(); ++add, ++j) {
+ int j = 0;
+ for (int add = low(); add <= high(); ++add) {
addresses[j] = format(toArray(add));
+ ++j;
}
return addresses;
}