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:09 UTC

[camel] branch main updated (10ae8eb0b9b -> c57398568f9)

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

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


    from 10ae8eb0b9b Handle -Pfastinstall as an alias of -Dquickly
     new 68c13636e3c (chores) camel-as2: move array designators to the type
     new 0bd62fcf525 (chores) camel-coap: move array designators to the type
     new 7fcc39ee178 (chores) camel-crypto: move array designators to the type
     new 2e7cc5aea86 (chores) camel-cxf: move array designators to the type
     new bde68e270c7 (chores) camel-jaxb: move array designators to the type
     new 8c795f79266 (chores) camel-jpa: move array designators to the type
     new 9ca44c0a1f8 (chores) camel-jsonpath: move array designators to the type
     new 96ffd36b5da (chores) camel-mail: move array designators to the type
     new b9a48bbabc3 (chores) camel-mllp: move array designators to the type
     new fbf331c0557 (chores) camel-netty: move array designators to the type
     new 6580aa92a51 (chores) camel-printer: move array designators to the type
     new 475a35f591e (chores) camel-tracing: move array designators to the type
     new 9a6e2d6fdc2 (chores) camel-xml-io: move array designators to the type
     new c57398568f9 (chores) camel-route-parser: move array designators to the type

The 14 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:
 .../camel/parser/helper/XmlLineNumberParser.java   |  2 +-
 .../component/as2/api/CanonicalOutputStream.java   |  2 +-
 .../org/apache/camel/coap/CamelCoapResource.java   |  2 +-
 .../apache/camel/converter/crypto/HexUtils.java    |  6 +--
 .../component/cxf/converter/CxfConverter.java      |  2 +-
 .../camel/component/cxf/jaxrs/CxfConverter.java    |  2 +-
 .../camel/converter/jaxb/NonXmlFilterReader.java   |  2 +-
 .../idempotent/jpa/JpaMessageIdRepository.java     |  2 +-
 .../java/org/apache/camel/jsonpath/JsonStream.java |  4 +-
 .../component/mail/DefaultMailUidGenerator.java    |  2 +-
 .../component/mllp/internal/MllpSocketBuffer.java  |  2 +-
 .../camel/component/netty/util/SubnetUtils.java    |  2 +-
 .../camel/component/printer/PrinterProducer.java   |  2 +-
 .../main/java/org/apache/camel/tracing/Tracer.java |  2 +-
 .../java/org/apache/camel/xml/io/MXParser.java     | 54 +++++++++++-----------
 15 files changed, 44 insertions(+), 44 deletions(-)


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

Posted by or...@apache.org.
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 68c13636e3cadc0730e72b9e52bd294c8e1f6cae
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Jun 23 13:48:32 2023 +0200

    (chores) camel-as2: move array designators to the type
---
 .../java/org/apache/camel/component/as2/api/CanonicalOutputStream.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-as2/camel-as2-api/src/main/java/org/apache/camel/component/as2/api/CanonicalOutputStream.java b/components/camel-as2/camel-as2-api/src/main/java/org/apache/camel/component/as2/api/CanonicalOutputStream.java
index 7b7f22ea8c7..6c5d4b6a5d4 100644
--- a/components/camel-as2/camel-as2-api/src/main/java/org/apache/camel/component/as2/api/CanonicalOutputStream.java
+++ b/components/camel-as2/camel-as2-api/src/main/java/org/apache/camel/component/as2/api/CanonicalOutputStream.java
@@ -64,7 +64,7 @@ public class CanonicalOutputStream extends FilterOutputStream {
     }
 
     @Override
-    public void write(byte buf[], int off, int len) throws IOException {
+    public void write(byte[] buf, int off, int len) throws IOException {
         for (int i = off; i != off + len; i++) {
             this.write(buf[i]);
         }


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

Posted by or...@apache.org.
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 0bd62fcf525a5d550f4b637e5d211faf7cdd30f4
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Jun 23 13:48:43 2023 +0200

    (chores) camel-coap: move array designators to the type
---
 .../src/main/java/org/apache/camel/coap/CamelCoapResource.java          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-coap/src/main/java/org/apache/camel/coap/CamelCoapResource.java b/components/camel-coap/src/main/java/org/apache/camel/coap/CamelCoapResource.java
index d9ce57885b5..dc4e0cfa995 100644
--- a/components/camel-coap/src/main/java/org/apache/camel/coap/CamelCoapResource.java
+++ b/components/camel-coap/src/main/java/org/apache/camel/coap/CamelCoapResource.java
@@ -134,7 +134,7 @@ final class CamelCoapResource extends CoapResource {
                 res++;
             }
 
-            byte bytes[] = exchange.getCurrentRequest().getPayload();
+            byte[] bytes = exchange.getCurrentRequest().getPayload();
             camelExchange.getIn().setBody(bytes);
 
             consumer.getProcessor().process(camelExchange);


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

Posted by or...@apache.org.
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;
         }


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

Posted by or...@apache.org.
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 475a35f591e841efa4695b144ff2146ce4ca8bfd
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Jun 23 13:56:23 2023 +0200

    (chores) camel-tracing: move array designators to the type
---
 .../camel-tracing/src/main/java/org/apache/camel/tracing/Tracer.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-tracing/src/main/java/org/apache/camel/tracing/Tracer.java b/components/camel-tracing/src/main/java/org/apache/camel/tracing/Tracer.java
index ff552a18676..7853762fec6 100644
--- a/components/camel-tracing/src/main/java/org/apache/camel/tracing/Tracer.java
+++ b/components/camel-tracing/src/main/java/org/apache/camel/tracing/Tracer.java
@@ -198,7 +198,7 @@ public abstract class Tracer extends ServiceSupport implements RoutePolicyFactor
         SpanDecorator sd = null;
 
         String uri = endpoint.getEndpointUri();
-        String splitURI[] = StringHelper.splitOnCharacter(uri, ":", 2);
+        String[] splitURI = StringHelper.splitOnCharacter(uri, ":", 2);
         if (splitURI[1] != null) {
             String scheme = splitURI[0];
             sd = DECORATORS.get(scheme);


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

Posted by or...@apache.org.
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 7fcc39ee178787de0b23ece018893039ce229826
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Jun 23 13:48:55 2023 +0200

    (chores) camel-crypto: move array designators to the type
---
 .../src/main/java/org/apache/camel/converter/crypto/HexUtils.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/HexUtils.java b/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/HexUtils.java
index 55b2c57e81a..9beabe97f81 100644
--- a/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/HexUtils.java
+++ b/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/HexUtils.java
@@ -21,7 +21,7 @@ package org.apache.camel.converter.crypto;
  */
 public final class HexUtils {
 
-    private static char hexChars[] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' };
+    private static char[] hexChars = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' };
 
     private HexUtils() {
     }
@@ -34,7 +34,7 @@ public final class HexUtils {
      * @param  length how many bytes from the array to include in the hexidecimal representation
      * @return        a string containing the hexidecimal representation of the requested bytes from the array
      */
-    public static String byteArrayToHexString(byte in[], int start, int length) {
+    public static String byteArrayToHexString(byte[] in, int start, int length) {
         String asHexString = null;
         if (in != null) {
             StringBuilder out = new StringBuilder(in.length * 2);
@@ -55,7 +55,7 @@ public final class HexUtils {
      * @param  in the byte array to convert to a hex string.
      * @return    a string containing the hexidecimal representation of the array
      */
-    public static String byteArrayToHexString(byte in[]) {
+    public static String byteArrayToHexString(byte[] in) {
         return byteArrayToHexString(in, 0, in.length);
     }
 


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

Posted by or...@apache.org.
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 96ffd36b5daf9e18aa850e43d97d82acba53901c
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Jun 23 13:52:46 2023 +0200

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

diff --git a/components/camel-mail/src/main/java/org/apache/camel/component/mail/DefaultMailUidGenerator.java b/components/camel-mail/src/main/java/org/apache/camel/component/mail/DefaultMailUidGenerator.java
index c8f8179a67f..845a923a20b 100644
--- a/components/camel-mail/src/main/java/org/apache/camel/component/mail/DefaultMailUidGenerator.java
+++ b/components/camel-mail/src/main/java/org/apache/camel/component/mail/DefaultMailUidGenerator.java
@@ -49,7 +49,7 @@ public class DefaultMailUidGenerator implements MailUidGenerator {
 
         // there should be a Message-ID header with the UID
         try {
-            String values[] = message.getHeader("Message-ID");
+            String[] values = message.getHeader("Message-ID");
             if (values != null && values.length > 0) {
                 String uid = values[0];
                 LOG.trace("Message-ID header found: {}", uid);


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

Posted by or...@apache.org.
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 2e7cc5aea86ae9e663af50349fe6a63a8bef6846
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Jun 23 13:50:20 2023 +0200

    (chores) camel-cxf: move array designators to the type
---
 .../java/org/apache/camel/component/cxf/converter/CxfConverter.java     | 2 +-
 .../main/java/org/apache/camel/component/cxf/jaxrs/CxfConverter.java    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/components/camel-cxf/camel-cxf-common/src/main/java/org/apache/camel/component/cxf/converter/CxfConverter.java b/components/camel-cxf/camel-cxf-common/src/main/java/org/apache/camel/component/cxf/converter/CxfConverter.java
index c3870e210cc..7b9af2687e8 100644
--- a/components/camel-cxf/camel-cxf-common/src/main/java/org/apache/camel/component/cxf/converter/CxfConverter.java
+++ b/components/camel-cxf/camel-cxf-common/src/main/java/org/apache/camel/component/cxf/converter/CxfConverter.java
@@ -66,7 +66,7 @@ public final class CxfConverter {
         if (object instanceof Collection) {
             return ((Collection<?>) object).toArray();
         } else {
-            Object answer[];
+            Object[] answer;
             if (object == null) {
                 answer = new Object[0];
             } else {
diff --git a/components/camel-cxf/camel-cxf-rest/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfConverter.java b/components/camel-cxf/camel-cxf-rest/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfConverter.java
index 5493fb7f77e..d04f46c47e0 100644
--- a/components/camel-cxf/camel-cxf-rest/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfConverter.java
+++ b/components/camel-cxf/camel-cxf-rest/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfConverter.java
@@ -67,7 +67,7 @@ public final class CxfConverter {
         if (object instanceof Collection) {
             return ((Collection<?>) object).toArray();
         } else {
-            Object answer[];
+            Object[] answer;
             if (object == null) {
                 answer = new Object[0];
             } else {


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

Posted by or...@apache.org.
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 6580aa92a5131af6f38a29cd438612248c2fa9ae
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Jun 23 13:56:17 2023 +0200

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

diff --git a/components/camel-printer/src/main/java/org/apache/camel/component/printer/PrinterProducer.java b/components/camel-printer/src/main/java/org/apache/camel/component/printer/PrinterProducer.java
index 9fd2d9b8b15..a91c5ee0094 100644
--- a/components/camel-printer/src/main/java/org/apache/camel/component/printer/PrinterProducer.java
+++ b/components/camel-printer/src/main/java/org/apache/camel/component/printer/PrinterProducer.java
@@ -94,7 +94,7 @@ public class PrinterProducer extends DefaultProducer {
     }
 
     private MediaTray resolveMediaTray(String tray) {
-        Media medias[] = (Media[]) getPrintService().getSupportedAttributeValues(Media.class, null, null);
+        Media[] medias = (Media[]) getPrintService().getSupportedAttributeValues(Media.class, null, null);
 
         if (medias == null) {
             return null;


[camel] 13/14: (chores) camel-xml-io: move array designators to the type

Posted by or...@apache.org.
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 9a6e2d6fdc2473df9781e052c482dadbce811e78
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Jun 23 13:57:22 2023 +0200

    (chores) camel-xml-io: move array designators to the type
---
 .../java/org/apache/camel/xml/io/MXParser.java     | 54 +++++++++++-----------
 1 file changed, 27 insertions(+), 27 deletions(-)

diff --git a/core/camel-xml-io/src/main/java/org/apache/camel/xml/io/MXParser.java b/core/camel-xml-io/src/main/java/org/apache/camel/xml/io/MXParser.java
index 40c12d8c1e5..1a375e2749a 100644
--- a/core/camel-xml-io/src/main/java/org/apache/camel/xml/io/MXParser.java
+++ b/core/camel-xml-io/src/main/java/org/apache/camel/xml/io/MXParser.java
@@ -101,15 +101,15 @@ public class MXParser implements XmlPullParser {
     protected boolean emptyElementTag;
     // element stack
     protected int depth;
-    protected char[] elRawName[];
-    protected int elRawNameEnd[];
-    protected int elRawNameLine[];
+    protected char[][] elRawName;
+    protected int[] elRawNameEnd;
+    protected int[] elRawNameLine;
 
-    protected String elName[];
-    protected String elPrefix[];
-    protected String elUri[];
+    protected String[] elName;
+    protected String[] elPrefix;
+    protected String[] elUri;
     // protected String elValue[];
-    protected int elNamespaceCount[];
+    protected int[] elNamespaceCount;
 
     /**
      * Make sure that we have enough space to keep element stack if passed size. It will always create one additional
@@ -189,13 +189,13 @@ public class MXParser implements XmlPullParser {
 
     // attribute stack
     protected int attributeCount;
-    protected String attributeName[];
-    protected int attributeNameHash[];
+    protected String[] attributeName;
+    protected int[] attributeNameHash;
     // protected int attributeNameStart[];
     // protected int attributeNameEnd[];
-    protected String attributePrefix[];
-    protected String attributeUri[];
-    protected String attributeValue[];
+    protected String[] attributePrefix;
+    protected String[] attributeUri;
+    protected String[] attributeValue;
     // protected int attributeValueStart[];
     // protected int attributeValueEnd[];
 
@@ -246,9 +246,9 @@ public class MXParser implements XmlPullParser {
 
     // namespace stack
     protected int namespaceEnd;
-    protected String namespacePrefix[];
-    protected int namespacePrefixHash[];
-    protected String namespaceUri[];
+    protected String[] namespacePrefix;
+    protected int[] namespacePrefixHash;
+    protected String[] namespaceUri;
 
     protected void ensureNamespacesCapacity(int size) {
         final int namespaceSize = namespacePrefix != null ? namespacePrefix.length : 0;
@@ -282,7 +282,7 @@ public class MXParser implements XmlPullParser {
      * simplistic implementation of hash function that has <b>constant</b> time to compute - so it also means
      * diminishing hash quality for long strings but for XML parsing it should be good enough ...
      */
-    protected static int fastHash(char ch[], int off, int len) {
+    protected static int fastHash(char[] ch, int off, int len) {
         if (len == 0)
             return 0;
         // assert len >0
@@ -308,12 +308,12 @@ public class MXParser implements XmlPullParser {
     // entity replacement stack
     protected int entityEnd;
 
-    protected String entityName[];
-    protected char[] entityNameBuf[];
-    protected String entityReplacement[];
-    protected char[] entityReplacementBuf[];
+    protected String[] entityName;
+    protected char[][] entityNameBuf;
+    protected String[] entityReplacement;
+    protected char[][] entityReplacementBuf;
 
-    protected int entityNameHash[];
+    protected int[] entityNameHash;
 
     protected void ensureEntityCapacity() {
         final int entitySize = entityReplacementBuf != null ? entityReplacementBuf.length : 0;
@@ -324,9 +324,9 @@ public class MXParser implements XmlPullParser {
                 System.err.println("TRACE_SIZING entitySize " + entitySize + " ==> " + newSize);
             }
             final String[] newEntityName = new String[newSize];
-            final char[] newEntityNameBuf[] = new char[newSize][];
+            final char[][] newEntityNameBuf = new char[newSize][];
             final String[] newEntityReplacement = new String[newSize];
-            final char[] newEntityReplacementBuf[] = new char[newSize][];
+            final char[][] newEntityReplacementBuf = new char[newSize][];
             if (entityName != null) {
                 System.arraycopy(entityName, 0, newEntityName, 0, entityEnd);
                 System.arraycopy(entityNameBuf, 0, newEntityNameBuf, 0, entityEnd);
@@ -357,7 +357,7 @@ public class MXParser implements XmlPullParser {
     protected int bufLoadFactor = 95; // 99%
     // protected int bufHardLimit; // only matters when expanding
 
-    protected char buf[] = new char[Runtime.getRuntime().freeMemory() > 1000000L ? READ_CHUNK_SIZE : 256];
+    protected char[] buf = new char[Runtime.getRuntime().freeMemory() > 1000000L ? READ_CHUNK_SIZE : 256];
     protected int bufSoftLimit = (bufLoadFactor * buf.length) / 100; // desirable
                                                                     // size of
                                                                     // buffer
@@ -370,7 +370,7 @@ public class MXParser implements XmlPullParser {
     protected int posStart;
     protected int posEnd;
 
-    protected char pc[] = new char[Runtime.getRuntime().freeMemory() > 1000000L ? READ_CHUNK_SIZE : 64];
+    protected char[] pc = new char[Runtime.getRuntime().freeMemory() > 1000000L ? READ_CHUNK_SIZE : 64];
     protected int pcStart;
     protected int pcEnd;
 
@@ -3049,8 +3049,8 @@ public class MXParser implements XmlPullParser {
     // protected static int lookupNameStartChar[] = new int[ LOOKUP_MAX_CHAR /
     // 32 ];
     // protected static int lookupNameChar[] = new int[ LOOKUP_MAX_CHAR / 32 ];
-    protected static boolean lookupNameStartChar[] = new boolean[LOOKUP_MAX];
-    protected static boolean lookupNameChar[] = new boolean[LOOKUP_MAX];
+    protected static boolean[] lookupNameStartChar = new boolean[LOOKUP_MAX];
+    protected static boolean[] lookupNameChar = new boolean[LOOKUP_MAX];
 
     private static void setName(char ch)
     // { lookupNameChar[ (int)ch / 32 ] |= (1 << (ch % 32)); }


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

Posted by or...@apache.org.
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 c57398568f9db0c7ec6bb5eb2b0964bb8a5c8794
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Jun 23 13:57:41 2023 +0200

    (chores) camel-route-parser: move array designators to the type
---
 .../main/java/org/apache/camel/parser/helper/XmlLineNumberParser.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/catalog/camel-route-parser/src/main/java/org/apache/camel/parser/helper/XmlLineNumberParser.java b/catalog/camel-route-parser/src/main/java/org/apache/camel/parser/helper/XmlLineNumberParser.java
index c99e4838eda..0fe10c734fe 100644
--- a/catalog/camel-route-parser/src/main/java/org/apache/camel/parser/helper/XmlLineNumberParser.java
+++ b/catalog/camel-route-parser/src/main/java/org/apache/camel/parser/helper/XmlLineNumberParser.java
@@ -247,7 +247,7 @@ public final class XmlLineNumberParser {
             }
 
             @Override
-            public void characters(final char ch[], final int start, final int length) {
+            public void characters(final char[] ch, final int start, final int length) {
                 textBuffer.append(ch, start, length);
             }
 


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

Posted by or...@apache.org.
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 bde68e270c722b3902e97de6df08311af520b7f0
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Jun 23 13:50:45 2023 +0200

    (chores) camel-jaxb: move array designators to the type
---
 .../main/java/org/apache/camel/converter/jaxb/NonXmlFilterReader.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/NonXmlFilterReader.java b/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/NonXmlFilterReader.java
index 648a111e157..80e0d4be72f 100644
--- a/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/NonXmlFilterReader.java
+++ b/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/NonXmlFilterReader.java
@@ -36,7 +36,7 @@ public class NonXmlFilterReader extends FilterReader {
      * @exception IOException If an I/O error occurs
      */
     @Override
-    public int read(char cbuf[], int off, int len) throws IOException {
+    public int read(char[] cbuf, int off, int len) throws IOException {
         int read = in.read(cbuf, off, len);
         if (read > 0) {
             nonXmlCharFilterer.filter(cbuf, off, read);


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

Posted by or...@apache.org.
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 9ca44c0a1f812bd86ab696aafdf98be986c78233
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Jun 23 13:51:50 2023 +0200

    (chores) camel-jsonpath: move array designators to the type
---
 .../src/main/java/org/apache/camel/jsonpath/JsonStream.java           | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/components/camel-jsonpath/src/main/java/org/apache/camel/jsonpath/JsonStream.java b/components/camel-jsonpath/src/main/java/org/apache/camel/jsonpath/JsonStream.java
index bda992bae76..24999b525a9 100644
--- a/components/camel-jsonpath/src/main/java/org/apache/camel/jsonpath/JsonStream.java
+++ b/components/camel-jsonpath/src/main/java/org/apache/camel/jsonpath/JsonStream.java
@@ -197,7 +197,7 @@ public class JsonStream extends FilterInputStream {
     }
 
     @Override
-    public int read(byte b[]) throws IOException {
+    public int read(byte[] b) throws IOException {
 
         if (inputIndex < inputEnd) {
             int minimum = Math.min(b.length, inputEnd - inputIndex);
@@ -225,7 +225,7 @@ public class JsonStream extends FilterInputStream {
     }
 
     @Override
-    public int read(byte b[], int off, int len) throws IOException {
+    public int read(byte[] b, int off, int len) throws IOException {
         if (inputIndex < inputEnd) {
             int minimum = Math.min(b.length, inputEnd - inputIndex);
             for (int i = 0; i < minimum; i++) {


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

Posted by or...@apache.org.
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 8c795f79266a5a75a3b0b37bb3c4a0c60f3bb29b
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Jun 23 13:51:40 2023 +0200

    (chores) camel-jpa: move array designators to the type
---
 .../apache/camel/processor/idempotent/jpa/JpaMessageIdRepository.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-jpa/src/main/java/org/apache/camel/processor/idempotent/jpa/JpaMessageIdRepository.java b/components/camel-jpa/src/main/java/org/apache/camel/processor/idempotent/jpa/JpaMessageIdRepository.java
index 7af1f673c56..0194d3218c1 100644
--- a/components/camel-jpa/src/main/java/org/apache/camel/processor/idempotent/jpa/JpaMessageIdRepository.java
+++ b/components/camel-jpa/src/main/java/org/apache/camel/processor/idempotent/jpa/JpaMessageIdRepository.java
@@ -183,7 +183,7 @@ public class JpaMessageIdRepository extends ServiceSupport implements Idempotent
         final EntityManager entityManager
                 = getTargetEntityManager(exchange, entityManagerFactory, true, sharedEntityManager, true);
 
-        Boolean rc[] = new Boolean[1];
+        Boolean[] rc = new Boolean[1];
         transactionStrategy.executeInTransaction(() -> {
             if (isJoinTransaction()) {
                 entityManager.joinTransaction();


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

Posted by or...@apache.org.
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 b9a48bbabc3c2ba31ec37f4f4439f5dc33bb07c7
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Jun 23 13:55:28 2023 +0200

    (chores) camel-mllp: move array designators to the type
---
 .../java/org/apache/camel/component/mllp/internal/MllpSocketBuffer.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-mllp/src/main/java/org/apache/camel/component/mllp/internal/MllpSocketBuffer.java b/components/camel-mllp/src/main/java/org/apache/camel/component/mllp/internal/MllpSocketBuffer.java
index 055fe1c0aaf..73ed4ea0b62 100644
--- a/components/camel-mllp/src/main/java/org/apache/camel/component/mllp/internal/MllpSocketBuffer.java
+++ b/components/camel-mllp/src/main/java/org/apache/camel/component/mllp/internal/MllpSocketBuffer.java
@@ -40,7 +40,7 @@ public class MllpSocketBuffer {
     private static final Logger LOG = LoggerFactory.getLogger(MllpSocketBuffer.class);
     final MllpEndpoint endpoint;
 
-    byte buffer[];
+    byte[] buffer;
     int availableByteCount;
 
     int startOfBlockIndex = -1;