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:13 UTC
[camel] 04/14: (chores) camel-cxf: move array designators to the type
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 {