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

[camel] 11/14: (chores) camel-printer: 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 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;