You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2023/06/23 15:45:19 UTC

[camel] 10/14: (chores) camel-netty: move array designators to the type

This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit fbf331c0557dec7d9ff586677d09523dc1d9fe9c
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Jun 23 13:56:10 2023 +0200

    (chores) camel-netty: move array designators to the type
---
 .../main/java/org/apache/camel/component/netty/util/SubnetUtils.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-netty/src/main/java/org/apache/camel/component/netty/util/SubnetUtils.java b/components/camel-netty/src/main/java/org/apache/camel/component/netty/util/SubnetUtils.java
index c72f811e7f5..bd50aae6384 100644
--- a/components/camel-netty/src/main/java/org/apache/camel/component/netty/util/SubnetUtils.java
+++ b/components/camel-netty/src/main/java/org/apache/camel/component/netty/util/SubnetUtils.java
@@ -325,7 +325,7 @@ public class SubnetUtils {
      * Convert a packed integer address into a 4-element array
      */
     private int[] toArray(int val) {
-        int ret[] = new int[4];
+        int[] ret = new int[4];
         for (int j = 3; j >= 0; --j) {
             ret[j] |= (val >>> 8 * (3 - j)) & 0xff;
         }