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 <angusyo...@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); }