camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gzurow...@apache.org
Subject [camel] 01/02: [Minor] Use Java-style array declaration
Date Mon, 08 Apr 2019 06:15:55 GMT
This is an automated email from the ASF dual-hosted git repository.

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

commit f2115b13d37ae2dec48e0aa2a870d652dcdbcad8
Author: Gregor Zurowski <gregor@zurowski.org>
AuthorDate: Mon Apr 8 08:08:57 2019 +0200

    [Minor] Use Java-style array declaration
---
 .../src/main/java/org/apache/camel/support/ExchangeHelper.java          | 2 +-
 .../src/main/java/org/apache/camel/support/IntrospectionSupport.java    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/camel-support/src/main/java/org/apache/camel/support/ExchangeHelper.java
b/core/camel-support/src/main/java/org/apache/camel/support/ExchangeHelper.java
index b654739..c805410 100644
--- a/core/camel-support/src/main/java/org/apache/camel/support/ExchangeHelper.java
+++ b/core/camel-support/src/main/java/org/apache/camel/support/ExchangeHelper.java
@@ -921,7 +921,7 @@ public final class ExchangeHelper {
         String scheme = null;
         if (uri != null) {
             // Use the URI prefix to find the component.
-            String splitURI[] = StringHelper.splitOnCharacter(uri, ":", 2);
+            String[] splitURI = StringHelper.splitOnCharacter(uri, ":", 2);
             if (splitURI[1] != null) {
                 scheme = splitURI[0];
             }
diff --git a/core/camel-support/src/main/java/org/apache/camel/support/IntrospectionSupport.java
b/core/camel-support/src/main/java/org/apache/camel/support/IntrospectionSupport.java
index d9fe0d2..55f2612 100644
--- a/core/camel-support/src/main/java/org/apache/camel/support/IntrospectionSupport.java
+++ b/core/camel-support/src/main/java/org/apache/camel/support/IntrospectionSupport.java
@@ -688,7 +688,7 @@ public final class IntrospectionSupport {
             Method[] methods = clazz.getMethods();
             for (Method method : methods) {
                 if (method.getName().equals(name) && isSetter(method, allowBuilderPattern))
{
-                    Class<?> params[] = method.getParameterTypes();
+                    Class<?>[] params = method.getParameterTypes();
                     if (params[0].equals(Object.class)) {
                         objectSetMethod = method;
                     } else {


Mime
View raw message