You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by gz...@apache.org on 2019/04/08 06:15:54 UTC
[camel] branch master updated (8ca1970 -> ddf6a33)
This is an automated email from the ASF dual-hosted git repository.
gzurowski pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git.
from 8ca1970 [Minor] Remove unnecessary object creation for log statement
new f2115b1 [Minor] Use Java-style array declaration
new ddf6a33 Fix placeholders in logging statement
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../src/main/java/org/apache/camel/support/CamelContextHelper.java | 2 +-
.../src/main/java/org/apache/camel/support/ExchangeHelper.java | 2 +-
.../src/main/java/org/apache/camel/support/IntrospectionSupport.java | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
[camel] 02/02: Fix placeholders in logging statement
Posted by gz...@apache.org.
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 ddf6a336472f86636a5046c0d400071b23f27402
Author: Gregor Zurowski <gr...@zurowski.org>
AuthorDate: Mon Apr 8 08:12:09 2019 +0200
Fix placeholders in logging statement
---
.../src/main/java/org/apache/camel/support/CamelContextHelper.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/camel-support/src/main/java/org/apache/camel/support/CamelContextHelper.java b/core/camel-support/src/main/java/org/apache/camel/support/CamelContextHelper.java
index def3fbb..1e868f4 100644
--- a/core/camel-support/src/main/java/org/apache/camel/support/CamelContextHelper.java
+++ b/core/camel-support/src/main/java/org/apache/camel/support/CamelContextHelper.java
@@ -485,7 +485,7 @@ public final class CamelContextHelper {
*/
public static SortedMap<String, Properties> findComponents(CamelContext camelContext) throws LoadPropertiesException {
ClassResolver resolver = camelContext.getClassResolver();
- LOG.debug("Finding all components using class resolver: {} -> {}", resolver);
+ LOG.debug("Finding all components using class resolver: {}", resolver);
Enumeration<URL> iter = resolver.loadAllResourcesAsURL(COMPONENT_DESCRIPTOR);
return findComponents(camelContext, iter);
}
[camel] 01/02: [Minor] Use Java-style array declaration
Posted by gz...@apache.org.
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 <gr...@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 {