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:01:33 UTC

[camel] branch master updated (0d5b8a1 -> f3f16f8)

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 0d5b8a1  camel-core - Polished some TODOs
     new 8baace2  [Minor] Use Java-style array declaration
     new f3f16f8  Add missing placeholder

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:
 core/camel-util/src/main/java/org/apache/camel/util/StringHelper.java   | 2 +-
 core/camel-util/src/main/java/org/apache/camel/util/TimeUtils.java      | 2 +-
 .../src/main/java/org/apache/camel/util/UnsafeUriCharactersEncoder.java | 2 +-
 .../src/main/java/org/apache/camel/util/XmlLineNumberParser.java        | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)


[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 8baace24e779de3f1e377b9fb9da9c2792bf898f
Author: Gregor Zurowski <gr...@zurowski.org>
AuthorDate: Mon Apr 8 07:56:20 2019 +0200

    [Minor] Use Java-style array declaration
---
 core/camel-util/src/main/java/org/apache/camel/util/StringHelper.java   | 2 +-
 .../src/main/java/org/apache/camel/util/UnsafeUriCharactersEncoder.java | 2 +-
 .../src/main/java/org/apache/camel/util/XmlLineNumberParser.java        | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/core/camel-util/src/main/java/org/apache/camel/util/StringHelper.java b/core/camel-util/src/main/java/org/apache/camel/util/StringHelper.java
index 7add663..ce622ac 100644
--- a/core/camel-util/src/main/java/org/apache/camel/util/StringHelper.java
+++ b/core/camel-util/src/main/java/org/apache/camel/util/StringHelper.java
@@ -343,7 +343,7 @@ public final class StringHelper {
     }
     
     public static String[] splitOnCharacter(String value, String needle, int count) {
-        String rc[] = new String[count];
+        String[] rc = new String[count];
         rc[0] = value;
         for (int i = 1; i < count; i++) {
             String v = rc[i - 1];
diff --git a/core/camel-util/src/main/java/org/apache/camel/util/UnsafeUriCharactersEncoder.java b/core/camel-util/src/main/java/org/apache/camel/util/UnsafeUriCharactersEncoder.java
index c778e25..d5030f2 100644
--- a/core/camel-util/src/main/java/org/apache/camel/util/UnsafeUriCharactersEncoder.java
+++ b/core/camel-util/src/main/java/org/apache/camel/util/UnsafeUriCharactersEncoder.java
@@ -106,7 +106,7 @@ public final class UnsafeUriCharactersEncoder {
         }
 
         // First check whether we actually need to encode
-        char chars[] = s.toCharArray();
+        char[] chars = s.toCharArray();
         for (int i = 0;;) {
             // just deal with the ascii character
             if (chars[i] > 0 && chars[i] < 128) {
diff --git a/core/camel-util/src/main/java/org/apache/camel/util/XmlLineNumberParser.java b/core/camel-util/src/main/java/org/apache/camel/util/XmlLineNumberParser.java
index d9da3cb..75fd14f 100644
--- a/core/camel-util/src/main/java/org/apache/camel/util/XmlLineNumberParser.java
+++ b/core/camel-util/src/main/java/org/apache/camel/util/XmlLineNumberParser.java
@@ -197,7 +197,7 @@ public final class XmlLineNumberParser {
             }
 
             @Override
-            public void characters(final char ch[], final int start, final int length) throws SAXException {
+            public void characters(final char[] ch, final int start, final int length) throws SAXException {
                 char[] chars = new char[length];
                 System.arraycopy(ch, start, chars, 0, length);
                 String s = new String(chars);


[camel] 02/02: Add missing placeholder

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 f3f16f805c1c198197b8b9d29e9c693fd1b9f831
Author: Gregor Zurowski <gr...@zurowski.org>
AuthorDate: Mon Apr 8 07:59:39 2019 +0200

    Add missing placeholder
---
 core/camel-util/src/main/java/org/apache/camel/util/TimeUtils.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/camel-util/src/main/java/org/apache/camel/util/TimeUtils.java b/core/camel-util/src/main/java/org/apache/camel/util/TimeUtils.java
index 6bd779d..d6edf36 100644
--- a/core/camel-util/src/main/java/org/apache/camel/util/TimeUtils.java
+++ b/core/camel-util/src/main/java/org/apache/camel/util/TimeUtils.java
@@ -147,7 +147,7 @@ public final class TimeUtils {
             }
         }
 
-        LOG.trace("source: {} milliseconds: ", source, milliseconds);
+        LOG.trace("source: [{}], milliseconds: {}", source, milliseconds);
 
         return milliseconds;
     }